Getting data from XML document

Hallo,

I have XML document, for example:

<?xml version="1.0" encoding="windows-1250" ?>
 <NAME> Discovery  </NAME>

  <ADRES>

  <STREET> Hetmaska 40 </STREET>

  <CITY> Krakow </CITY>

  </ADRES>
  <NAME> Auto-Max  S.C. </NAME>

 <ADRES>

  <STREET> Polna 40 </STREET>

  <CITY> Warszaw </CITY>

</ADRES>

How can I get in fast and easy way (using LotusScript or Java) name and street of the company, for example I want to get street of the company Discovery. Is it possible?

Thanks in advance

Konrad

Subject: NotesDOMParser, NotesDOMDocumentNode, etc.

Roughly you could do it like so:Get the source XML into a NotesRichTextItem or NotesStream.

Use a NotesDOMParser to parse the XML.

Use the Document property to get the NotesDOMDocumentNode that is the root of the tree resulting from the parse.

From there I think you can probably use the GetElementsByTagName method.