Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
tra4tor  
#1 Posted : Monday, October 26, 2020 9:45:53 PM(UTC)
tra4tor

Rank: Member

Groups: Registered
Joined: 10/1/2020(UTC)
Posts: 18
Germany
Location: niedersachsen

Thanks: 5 times
Hi there,
  1. my xml file is loaded into data source named xml2.
  2. there, exist an empty data source named xml3
  3. there, exist an empty data source named XMLFROMSTRING
  4. when I press the Red (named load xml String) button following action would/should happen:
    1. search for node with id=IA_2 and append it to the data source xml3
    2. save datasource xml3 as string to another empth data source node ($SERIALIZEDSTRINGS/Strings/XML_String)
    3. load the serialized string from previous step to "XMLFROMSTRING" data source. which at this point shows "error on parsing" message



The blue button does the process that I described above without any problem but with the simple xml file and not my xml file format which is loaded under xml2 data source.

Question is that how to make red button work with my xml file format just like what blue button does with simple xml file format. briefly it search for node with id= 1 in xml4 source and then save it as string in $SERIALIZEDSTRINGS/Strings/XML_String node and then load this string as data source into xml5.

Note that my xml file format(Named "EP2_F1.xml") use schema and namespaces.

thanks
File Attachment(s):
SaveXMLString.zip (24kb) downloaded 2 time(s).
bbv  
#2 Posted : Tuesday, October 27, 2020 5:37:34 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 425

Was thanked: 73 time(s) in 73 post(s)
Your explanation is very confusing. Can you try again please. You may write in German if it is easier for you
tra4tor  
#3 Posted : Thursday, October 29, 2020 8:22:38 PM(UTC)
tra4tor

Rank: Member

Groups: Registered
Joined: 10/1/2020(UTC)
Posts: 18
Germany
Location: niedersachsen

Thanks: 5 times
Originally Posted by: bbv Go to Quoted Post
Your explanation is very confusing. Can you try again please. You may write in German if it is easier for you

Has been edited. hope that to be more understandable now.
simply in one sentence: I want to search for a node in my data source, then save this xml node as string, afterward when needed Load this string in an empty data source and work on it. I did what is in the tutorial of saving/loading xml datasource to/from string. But it seems it does not work with my xml file. and I think it could be related to namespace or schema file that is used in my xml file.
bbv  
#4 Posted : Friday, October 30, 2020 5:42:06 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 425

Was thanked: 73 time(s) in 73 post(s)
You are right, the reason is that you have to make sure to define namespace wherever you are using them.

The easiest solution for you is to change the first Append to use a wrapper node. When using it - all namespace definitions get copied automatically, and then you take the inner element with all of them to your target node.
bbv attached the following image(s):
Wrapper.JPG
Users browsing this topic
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.