kuronen

Vice Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-18
08:19
849 views
No DOMParser
Doing ecmascripting with Desiger and my road suddenly stopped at this
Because I got this
Should DOMParser be included in IDM? If not is there any other way to parse my XML than to add children one by one? Hate to invent wheel again.. or was is rectangle?
parser = new DOMParser();
Because I got this
Error Evaluating Script com.novell.soa.script.mozilla.javascript.EcmaError: ReferenceError: "DOMParser" is not defined. (unnamed script#50)
Should DOMParser be included in IDM? If not is there any other way to parse my XML than to add children one by one? Hate to invent wheel again.. or was is rectangle?
__________
Pekka Kuronen
Pegasi Oy / pegasi.fi
Pekka Kuronen
Pegasi Oy / pegasi.fi
3 Replies
kuronen

Vice Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-18
09:44
DOMParser seems to be web browser only. Strangely it was in some NetIQ Cool solutions.
Managed to create a good parser with the help of earlier example in this forum so all good here.
Managed to create a good parser with the help of earlier example in this forum so all good here.
__________
Pekka Kuronen
Pegasi Oy / pegasi.fi
Pekka Kuronen
Pegasi Oy / pegasi.fi
Anonymous_User

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-19
04:32
On 1/18/2019 1:24 AM, kuronen wrote:
>
> Doing ecmascripting with Desiger and my road suddenly stopped at this
>
>
> Code:
> --------------------
>
> parser = new DOMParser();
>
> --------------------
>
>
> Because I got this
>
>
> Code:
> --------------------
>
> Error Evaluating Script com.novell.soa.script.mozilla.javascript.EcmaError: ReferenceError: "DOMParser" is not defined. (unnamed script#50)
>
> --------------------
>
>
> Should DOMParser be included in IDM? If not is there any other way to
> parse my XML than to add children one by one? Hate to invent wheel
> again.. or was is rectangle?
>
>
https://github.com/fchierad/PRD/tree/master/other
file: dom-xml.js
xml2dom(): Reads a well formed XML string and returns a DOM object built from it.
dom2xml(): onverts a DOM object to serialized XML.
and I just noticed the typo after pasting here 🙂 those are for User App back-end engine,
for the IDM driver there is a different approach to use.
>
> Doing ecmascripting with Desiger and my road suddenly stopped at this
>
>
> Code:
> --------------------
>
> parser = new DOMParser();
>
> --------------------
>
>
> Because I got this
>
>
> Code:
> --------------------
>
> Error Evaluating Script com.novell.soa.script.mozilla.javascript.EcmaError: ReferenceError: "DOMParser" is not defined. (unnamed script#50)
>
> --------------------
>
>
> Should DOMParser be included in IDM? If not is there any other way to
> parse my XML than to add children one by one? Hate to invent wheel
> again.. or was is rectangle?
>
>
https://github.com/fchierad/PRD/tree/master/other
file: dom-xml.js
xml2dom(): Reads a well formed XML string and returns a DOM object built from it.
dom2xml(): onverts a DOM object to serialized XML.
and I just noticed the typo after pasting here 🙂 those are for User App back-end engine,
for the IDM driver there is a different approach to use.
kuronen

Vice Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-23
07:37
Did the same but yours is more streamlined. Thanks for sharing!
__________
Pekka Kuronen
Pegasi Oy / pegasi.fi
Pekka Kuronen
Pegasi Oy / pegasi.fi