Print XML documents:HELP

From: Chris Peppas (peppasbet_at_hotmail.com)
Date: 01/29/04


Date: 29 Jan 2004 11:35:14 -0800


> How can I print this xml (with JDOM using Xpath or any other
> methods) without its tags.
>
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <words>
> <word id="word_1">Annotation</word>
> <word id="word_2">tool</word>
> <word id="word_3">in</word>
> <word id="word_4">Java</word>
> <word id="word_5">.</word>
> </words>
>
> I would like to get in a string the sentence that will look like this:
>
> Annotation tool in Java.
> Thank you



Relevant Pages

  • Re: Getting NASM from C
    ... > format we were going to edit it in... ... all XML is? ... HTML is a specific "subset" of XML for displaying ... it's a text file with "tags" inside ...
    (alt.lang.asm)
  • Re: Gotta start somewhere ... how many of us are really out there?
    ... if you are thinking of using XML ... pure shell commands ... ... or whatever XML tags you want to use using the acutal ... accompish all this in hindsight,as all the commands ...
    (freebsd-questions)
  • Re: Read binary data file
    ... I think its use is quite industry-dependent: I've never seen it used in financial messaging (that's more likely to use SWIFT formats, which are tagged text) but its common in the telecommunications industry. ... Compared with XML its a LOT more compact (tags are one byte, fixed length fields don't have terminators, variable length fields are preceded by a one or two byte length) and it has a number of predefined field types as well as arrays. ...
    (comp.lang.java.programmer)
  • Re: REZKONV und Apple OS X
    ... only MasterCook XML export format). ... (name of recipe) designates the Name element, ... These tags work with plain-text files or 3rd party XML files. ... There should be only one ingredient per line. ...
    (de.rec.mampf)
  • Re: xml parsing issue
    ... point all data is being created and writing to xml file what I need. ... The output file has the following tags: ... The VLAN tag and attribute get created but a closing tag never does. ...
    (microsoft.public.scripting.vbscript)