You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by ma...@email.cz on 2002/01/03 19:27:31 UTC

Newbie - Help reading static values from XML

Greetings,
I am just starting with XercesJ2 and as one of the very simple test examples I would like to understand how to read and display a static data from an existing XML file.
Ie. XML file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xxx>
<xxx>
  <name1>fido1</name1>
  <name2>fido2</name2>
</xxx>

Now I would like to write a Java program just parsing the XML and displaying (system.out) all nodes/elements and it's values
ie.
xxx
name1 -> fido1
name2 -> fido2

Thanks for any help, Martin

---
Vše nejlepší v roce 2002, hodně osobních a pracovních úspěchů Vám všem přeje Váš server Email.cz 

http://www.email.cz <--- Get Your Free Email



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org