aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML insert not happening in my code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML insert not happening in my code" Watch "XML insert not happening in my code" New topic
Author

XML insert not happening in my code

saravanan sambandam
Ranch Hand

Joined: Aug 30, 2010
Posts: 42
<?xml version="1.0" encoding="UTF-8"?>
<Menus>
<appMenu>
<mainMenu id = "1" name = "Home" alias = "home" uType = "a" status = "a" parentId = "0" orderBy = "1" width = "" img = "" link = "" >
<subMenu id ="2" name = "SUBaa" alias = "aa" uType = "a" status = "a" parentId = "1" orderBy = "2" width = "" img = "" link = "" >
<gSubMenu id ="" name = "" alias = "" uType = "" status = "" parentId = "" orderBy = "" width = "" img = "" link = "" />
</subMenu>
</mainMenu>
</appMenu>
</Menus>



Input comes from jsp. If the parent id = 0 means it will be main menu otherwise it will be submenu. example. MenuName is "News" , parent id=0. In that case i need to clone from <mainmenu> tag and need to change the attributes and update with existng tree.

My case - clone and insert was not happening if any one found helps me it will be great help to me.

Thanks
Saran.


Hi it was updating in my XML, but it not reflecting in my current workspace.

My problem is - i using RAD 7.5 and my mainmenu xml is "/WEB-INF/MainMenu.xml";but its updating here E:\Struts Project\Rad7.5\Version\ver_0.1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\aeWebPortal\WEB-INF\MainMenu.xml.

Its not reflecting here in "/WEB-INF/MainMenu.xml".

Please tell me as soon as possible


Still its not working! what i need to change please tell me as soon as possible!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Welcome to JavaRanch!

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18909
    
    8

I see. So your RAD starts up a server, which is a separate process with a different directory structure. And you update an XML document in that server's directory structure. That looks like a fairly reasonable thing to do.

But what would be the point in having the server also update some file somewhere else? (That's the one in RAD which you thought would be updated.) In real life when you deploy your server, there isn't going to be a RAD environment anywhere on the machine.
saravanan sambandam
Ranch Hand

Joined: Aug 30, 2010
Posts: 42
Hey, Still it is not working actually what i need to change please give me some step by step method.

I am getting struggle now.


Thanks
Saran.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

saravanan sambandam wrote:Hey, Still it is not working actually what i need to change please give me some step by step method.



Did you try running it outside of RAD (or for that matter, outside of any IDE)?

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML insert not happening in my code