• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Filtering XML using DOM  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi ,
First I have to admit that this site was of great help to me.I have been a silent learner and now start to practice XML. It is really intersting to get some help when u need it. I will try to be active in asking & responding things I know .Here is my Q
I am trying to filter xml document.To be clear let me put it in example.here is my xml document
<employees>
<employeeNO1>
<name>.......</name>
<ssn> .......</ssn>
<address>.......</address>
</employeeNO1>
<employeeNO2>
<name>.......</name>
<ssn> .......</ssn>
<address>.......</address>
</employeeNO1>

<employeeNO3>
<name>.......</name>
<ssn> .......</ssn>
<address>.......</address>
</employeeNO1>

</employee>

No I want to generate XML document from with the following characters

<employee>
<name>.......</name>
<ssn> .......</ssn>
<address>.......</address>
</employee>

I will have all the values of elements but would like to put them in one so that I can have same data type easy to compress and play around.To show u some of my code

public void access ( Node node ) {


NodeList node.getElementsByTagName (String name )

int type = node.getNodeType ();
Is there some thing wrong here. I am not able even to compile it.
SO please give me some hint to either correct it or think other means of doing it .
Thankyou,
Essey
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!