Hai all,

        Thanks for your advise.

As per Meena told I also notice that there is some "text nodes" comes while parsing XML file.The type of that node is "Text" and the value/name is something like "#text" ....

For Mr.Dave:

Hai Dave thanks for your mail...I think you are also bit confused with my question.:-)Okey man....once more I'll tell you.I've a xml file in the database.we can call it as a previous XML.okey....then I have some Input values,as you to mentioned here like a HashMap / Hashtable.That contains some fields and the corresponding values.I want to compare each of the key values with the previous XML(ie, from the DB) and if particular node is already existing in the PreviousXML remove that node and create a new node with the new values and insert in to the PreviousXML.If the hashtable key values are not in the PreviousXML I can directly create the node and append to the PreviousXML.

This is my target...

Regards,
Krishna....


----- Original Message ----- From: "Meenakshi Rm" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, June 09, 2006 5:46 PM
Subject: Re: [OT] Re: XML Help


I have had such scenarios, sometimes in your xml if you have tabs or other
escape characters it adds them on as text nodes while parsing. So you may
have to modify your xml to be free of such characters.

To find it out print out each node type, you will be able to resolve.

Hope this helps.

Regards,
Meena.



On 6/9/06, Dave Newton <[EMAIL PROTECTED]> wrote:

Krishnakanth wrote:
> Note : I just took the getElementByTagName("table") that time I got the
length as 2 it is ok.but after that I iterate that NodeList in a for loop
and take NodeList.item(i).getChildNodes, Now I get some 8 or 10
childs....So I'm totally confused....
>
> Any Idea Please advise....
>

Me too, since you didn't provide any information about how you're
accessing the XML, etc.

Simplistic XML merging (for me) has generally consisted only of a couple
of hash tables and loops and minor decision-making about which
attributes to use for node 'equality' comparisons.

It sounds like you're having problems at an even higher level, i.e., you
don't know how to use your XML library. Can't help, don't know what
you're using and how it represents elements.

> Urgent !!! Urgent !!! Urgent !!! Urgent !!! Urgent !!!
>

If it's that urgent you might want to consider Google or an XML forum.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to