MobileTogether Support Forum
»
Designer
»
MobileTogether Designer
»
error on parsing '' on loading xml string into data source (also in tutorial example))
Rank: Member
Groups: Registered
Joined: 10/1/2020(UTC) Posts: 18 Location: niedersachsen Thanks: 5 times
|
Hi there, - my xml file is loaded into data source named xml2.
- there, exist an empty data source named xml3
- there, exist an empty data source named XMLFROMSTRING
- when I press the Red (named load xml String) button following action would/should happen:
- search for node with id=IA_2 and append it to the data source xml3
- save datasource xml3 as string to another empth data source node ($SERIALIZEDSTRINGS/Strings/XML_String)
- 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
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 498
Was thanked: 88 time(s) in 88 post(s)
|
Your explanation is very confusing. Can you try again please. You may write in German if it is easier for you
|
|
|
|
Rank: Member
Groups: Registered
Joined: 10/1/2020(UTC) Posts: 18 Location: niedersachsen Thanks: 5 times
|
Originally Posted by: bbv 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.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 498
Was thanked: 88 time(s) in 88 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):
|
|
|
|
MobileTogether Support Forum
»
Designer
»
MobileTogether Designer
»
error on parsing '' on loading xml string into data source (also in tutorial example))
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.