[nycphp-talk] Is this XML valid?
David Roth
davidalanroth at gmail.com
Sun Sep 20 00:31:39 EDT 2009
> Hi David:
>
> > <?xml version="1.0" ?>
> > <document type="db download">
> >
> > <packages total_weight="15.8" total_packages="1">
> > <package length="147" width="5" height="5" weight="15.8"/>
> > </packages>
>
> That's not well-formed (valid) because there should be a closing
> </document> tag at the end.
>
>
> > I was expecting each attribute and node to have it's own <> and </
> >, and
> > the data not to be surround by double-quotes or am I missing
> something?
>
> As others have mentioned, XML has "elements" (the stuff using <> and
> </>)
> and "attributes" (the stuff inside the opening or empty element that
> use
> the name="value" format).
>
> --Dan
>
> --
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> data intensive web and database programming
> http://www.AnalysisAndSolutions.com/
> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
As I mentioned in my original posting, this was a fragment.
David Roth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090920/30fc5bc1/attachment.html>
More information about the talk
mailing list