Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: How to import an XML Document?
Topic Summary:
Created On: 30-Apr-2008 11:39
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 30-Apr-2008 11:39
User is offline View Users Profile Print this message


Andreas Smigielski

Posts: 2
Joined: 9-Apr-2008

I would like to import a XML Document into Doors 8.3.
I already managed to get the data from file into a DOM_Document,
but then i didn't found a way how to process every Element in the DOM Document.
I have tried to get the DOM_Element from the DOM_Document with
getDocumentElement, but this gives me always only one and the same result.

Can some one point me to the right way to parse an XML Document in DXL?
Report this to a Moderator Report this to a Moderator
 30-Apr-2008 16:25
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Attached is a function I've used to scan through an XML file reading out the elements. I guess its the 'for .. in .. do' that you need.

Paul.

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 7-May-2008 10:46
User is offline View Users Profile Print this message


Andreas Smigielski

Posts: 2
Joined: 9-Apr-2008

Yes, the if .. for .. in .. do functionality was what i had been looking for.
Thank you.

Andreas.
Report this to a Moderator Report this to a Moderator
 25-Jul-2008 15:26
User is offline View Users Profile Print this message


Heng Jean-Philippe

Posts: 15
Joined: 21-Jul-2008

I would like to find an example of how i can initiate the process to read a XML file. Initiating DOM object, Opening DOM Element...
Someone has an example like that?

Thanks

JP
Report this to a Moderator Report this to a Moderator
 25-Jul-2008 18:28
User is offline View Users Profile Print this message


Gordon Woods

Posts: 35
Joined: 2-Mar-2007

JP

Take a look at Paul Tiplady's script on this thread ( it's near the bottom of the thread)
https://forum.telelogic.com/customer/doors/messageview.cfm?catid=17&threadid=9550

----------------
Gordon
Report this to a Moderator Report this to a Moderator
 28-Jul-2008 22:06
User is offline View Users Profile Print this message


Heng Jean-Philippe

Posts: 15
Joined: 21-Jul-2008

thanks Gordon it's exactly what i was looking for!!!
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.