[nycphp-talk] Is this XML valid?
CED
consult at covenantedesign.com
Sat Sep 19 01:33:13 EDT 2009
David Roth wrote:
> I've been using simplexml to parse XML and so far the XML I've had to
> deal with has been pretty straight forward. Then I run across this XML
> which I don't know what to call it or how it should be handled properly.
>
> Here is a fragment of what I'm talking about:
>
> <?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>
>
> 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?
>
> Thanks!
>
> David
>
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>
>
>
That's valid. it's just using short hand attributes instead of nested nodes.
--
<img src="http://covenantedesign.com/logo.jpg" border ="0">
995 Maple Hill Road
Castleton, New York 12033
518-331-5061
Consult at CovenanteDesign.com
More information about the talk
mailing list