Re: Java XML document creation



On 1 Sep 2005 09:36:11 -0700, alfienorks@xxxxxxxxxxx wrote or quoted :

>XMLNodesArray[] = { '/a/b/c', '/a/b/d', '/z/y/x', '/z/y/a' };

this notation so far as I know is something you cooked up, and empty
data files are not something there is a big demand for. So I will
hazard a guess you wont' find a canned solution.

Tackling the problem from scratch, here is how I would proceed.

1. use regex to convert a/b/c to new String[]{ "a", "b", "c" };

2. write some looping code to convert that to
<root>
<a>
<b>
<c></c>
</b>
</a>
</root>

3. write some looping code to convert two lines '/a/b/c', '/a/b/d' to
what you want.

4. keep going, adding more lines until you see the general patterns.



--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: OT: Questions about Set Theory
    ... I haven't read all this, but in standard mathematical notation, ... empty set), such as a subset of items in the above set ... He also noted that he not only was using poor notation of to show zero ... Based on his ignorance he claimed I was having "delusions": ...
    (comp.sys.mac.advocacy)
  • {} for set notation
    ... I really like the set notation idea. ... dictionaries have been in 'borrowing' for all this time in Python. ... Of course the empty set is the problem since could be interpreted ... I like the idea of set literals, but using for dicts and ...
    (comp.lang.python)
  • Re: So whats null then if its not nothing?
    ... I do not understand the notation. ... The braces '' are TTM notation ... projection is over the empty set of attributes. ...
    (comp.databases.theory)
  • Re: merge two existing latex symbols
    ... [My apologies for sending an empty message.] ... way of representing so I made up a symbol to do it. ... there is already a notation for this but anyhow... ...
    (comp.text.tex)
  • Re: Duplicate Contact Folders
    ... Tools> Account Settings> Data Files ... as the default in your profile, restart Outlook, then close the empty one. ... At that point you should be able to display your Contacts Folder in the ... > 'Contacts in Personal Folders'. ...
    (microsoft.public.outlook.contacts)