I'm not an xml expert but I believe that's valid. Things within the brackets (and not in their own node I believe are considered attributes.
On 9/18/09, David Roth <davidalanr...@gmail.com> 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 > -- Sent from my mobile device Brian O'Connor _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php