0

Hi All,

I am trying to parse an xml file. Not using any of the regex or parsers, simply using only java code. Any suggestions? Thanks

5
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by iamthwee
0

Take a look at the Java API, in particular the javax.xml packages. There are some handy tutorials on the sun website too. You will probably need to use a DOM model to parse the xml.

0

Hi All,

I am trying to parse an xml file. Not using any of the regex or parsers, simply using only java code. Any suggestions? Thanks

Ok, so you won't use an XML parser for some reason that you won't explain. Your last post asked how to do it with regex - so I took the time to write some code for you to get you started with it and you completely ignored it. Now you want someone to tell you how to parse it without XML parser or regex. Did I miss anything there?

Well, speaking for myself, just forget it. Learn to use the String API on your own to parse the data. Good luck.

0

>I am trying to parse an xml file. Not using any of the regex or parsers, simply using only java code.

This is completely pointless unless you're doing it solely for educational reasons. Are you?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.