|
|
Re: Epsilon Plain Xml Transformation [message #1384077 is a reply to message #1383975] |
Wed, 28 May 2014 04:54 |
Gurdeep gsr Messages: 2 Registered: May 2014 |
Junior Member |
|
|
Thankyou Dimitris. That works.
There are two other problems which I am facing:
1)Is there a way to append a new child at a particular position .ie.,
consider this file:
<school>
<student>a</student>
<student>b</student>
<teacher>x</teacher>
<teacher>y</teacher>
..
..
</school>
Now when I add a new student:
var s=t_school;
s.createStudent();
operation Element createStudent()
{
var s=new t_student;
self.appendChild(s);
}
After this the file looks like:
<school>
<student>a</student>
<student>b</student>
//Can new student be added here??
<teacher>x</teacher>
<teacher>y</teacher>
..
..
<student/>
</school>
I want the new 'student' be added in place with the previous 'students' , as there is some validation process which requires such placement.
2)Once the file has been edited by the eol, the file is left with some unwanted escaped characters:
For eg.,
<student id ="123" status='query.isdaysScholar("123")'/>
After running the eol, this appears:
<student id ="123" status="query.isdayscholar("123")"/>
So, the single quotes surround a method call are being replaced by double quotes and also, the double quotes around the method parameter are being escaped to """.
Is there a way to force stop this escaping ?
[Updated on: Wed, 28 May 2014 09:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02329 seconds