Skip to main content



      Home
Home » Newcomers » Newcomers » Querying and adding element to XML with comments(I was trying to query an existing xml which has a comment node at the starting and create a new element and add it to root.)
Querying and adding element to XML with comments [message #1381244] Sun, 25 May 2014 09:04 Go to next message
Eclipse UserFriend
I have attached the xml file that i am trying to query and then add a element "association" with a new id and other new attribute.

How do I get the root node which is "component-definition" in this case. XML.root gives me comment node. and t_component-definition gives me a error saying "EXCEPTION: Undefined variable, type or model : 'definition' not defined".

How do I get the root node(component-definition) here. ?
Re: Querying and adding element to XML with comments [message #1381517 is a reply to message #1381244] Sun, 25 May 2014 11:48 Go to previous message
Eclipse UserFriend
On 05/25/2014 09:39 AM, Rahul Gupta wrote:
> I have attached the xml file that i am trying to query and then add a element "association" with a new id and other new attribute.
>
> How do I get the root node which is "component-definition" in this case. XML.root gives me comment node. and t_component-definition gives me a error saying "EXCEPTION: Undefined variable, type or model : 'definition' not defined".
>
> How do I get the root node(component-definition) here. ?

It's a little unclear what you expect here. This doesn't look like a
question about the Eclipse IDE, workbench or how to use those. It looks
a lot like a question about XML. If so, you'd be much better served
asking it on stackoverflow.com.
Previous Topic:java project folders
Next Topic:eclipse simulating visual studio
Goto Forum:
  


Current Time: Fri Jun 20 12:24:04 EDT 2025

Powered by FUDForum. Page generated in 0.09869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top