Hello there!

I'm new to the Java programming (see the other messages), I come from
PHP for handling XML files. I usually use SimpleXML, a very simple
class to manage this type of files. Here is an example:

$xml = new simplexml_load("http://mycoolsite.com/file.xml";);
foreach($xml->contents as $entity => $value)
        echo "$entity: $value";

Ok, now tell me why I should handle XML files like THIS:
http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html

Is there a simplier way to do it? Or is there any class like SimpleXML
ready for Java/Android?
I can't understand why there isn't a standard easy XML handler just
out for Android. I tried XML Pull Parser (
http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
), but I can't seem to fully understand the lines like "throws
XmlPullParserException, IOException" and why are them obligatory...

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to