Rank: Advanced Member
Groups: Registered
Joined: 6/23/2015(UTC) Posts: 59  Thanks: 5 times
|
I was adding a simple XML structure ("MyStructure") to $PERSISTENT using "Import Structure from XML" in the context menu. The root element was located directly under $PERSISTENT. The problem: The Delete function is disabled for that element and so I'm not able to delete. Any hints for me? Thanks
$PERSISTENT/Root $PERSISTENT/MyStructure
Additional note: The exported $PERSISTENT structure isn't well formed. I guess "Import Structure from XML" should target $PERSISTENT/Root. Workaround: the structure must use <ROOT> as root element.
$PERSISTENT/Root $PERSISTENT/Root/MyStructure
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 484
Was thanked: 81 time(s) in 81 post(s)
|
This is a limitation of the $PERSISTENT tree - its root element must be Root. You have two possibilities:
- Modify the root element in your source XML to have name Root before importing structure - Create a new XML tree, import structure as is, and if you need it to persist during runs - use context menu to "Persist data on client"
Altova MobileTogether Experts
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/23/2015(UTC) Posts: 59  Thanks: 5 times
|
Thanks. Perhaps "Import Structure from XML" should assigned to <Root> context menu to avoid such mistake? Once I had imported the faulty XML I wasn't able to change or delete it again. Therefore I had to set up my test app from scratch.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 484
Was thanked: 81 time(s) in 81 post(s)
|
|
|
|
|
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.