Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 9th, 2008, 03:01 PM
Newbie
 
Join Date: Sep 2008
Posts: 1
Default XML & Java

1) I have some chain XML, read one xml filefirst & child attribute will have ahref="" pointing to a diff xml file ..read that file and get the value of the parent attribuite id=""

I have tried..I am able to read using java...the attribute value..not sure now how to read the xml file passing this href values...like this ..it may have more than 50 child....each child have a corresponding xml file to get the value.

Please help me if any one is having any idea, I am new to XML.

Thanks
jose
Reply
  #2  
Old September 19th, 2008, 01:19 PM
MarkoKlacar's Avatar
Expert
 
Join Date: Aug 2007
Location: Stockholm, Sweden
Posts: 290
Default

Hi,

You need to look at saxon (an XML package for Java).
What you're trying to do is pretty common, you should find a ton of examples on the Internet - otherwise let me know and I'll direct you to some good sites.

/MK
Reply
  #3  
Old September 19th, 2008, 03:54 PM
Moderator
 
Join Date: Mar 2006
Posts: 889
Default

What are you using for XML parsing? If it is a SAX or event based parser, then when you come across an ahref attribute, you should be able to open a new Document object for the other file, and parse that one as well.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles