mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 11:41 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: XML Import Sample v1.0i
PostPosted: Sat Jan 31, 2004 6:35 pm 
Offline
Site Admin

Joined: Sun Nov 07, 1999 8:01 am
Posts: 1900
Location: Wilrijk, Belgium
Country: Belgium (be)
XML Import Sample v1.0i
I got some e-mails with some question about how to import XML file into Navision. So here's a little codeunit with xml file that describes how to import a XML file into Navision. You'll need the 'Microsoft XML, version 2.0' which should be automatically available when installing Navision. At least all attain versions. This codeunit is written in Navision 3.70, but you can probably use it in version before that.

http://www.mibuso.com/dlinfo.asp?FileID=329

Discuss this download here.


Top
 Profile  
 
 Post subject: import sample
PostPosted: Tue Mar 09, 2004 11:15 am 
Offline

Joined: Thu Feb 22, 2001 8:01 am
Posts: 20
Location: Spain
Country: Spain (es)
hi, i use the roman's(XE 1.3i module for export one product, i try import with this module and crash.
with debugger in line:

MessageValues(XMLNode.attributes().getNamedItem('No.').text); // <Item No.=??????></Item>

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 10:19 am 
Offline

Joined: Fri Aug 31, 2001 7:01 am
Posts: 567
Location: Netherlands, The
Country: Netherlands (nl)
Thoses two pieces of application are not compatible...

The import is just a sample. This is made to show the programmer how to create a XML import.

It you want to import an XML file made by roman's(XE you will have to programm a import function especially for the file you created.

Hope to have helped!

_________________
"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."


Top
 Profile E-mail  
 
 Post subject: import a variant
PostPosted: Tue Jun 08, 2004 11:48 am 
Offline

Joined: Tue Jun 08, 2004 11:38 am
Posts: 10
Location: nacka
Hello!

I have tried to import a xml file, with your cu XML Import Sample but I cant get this to work with my xml file.
LoadNodeList(XMLDocument,XMLNodeList,'MEDL/MEDL');
It doesnt return anything.
Th bottom of the xml file looks like this

<KON>M</KON></MEDL></
NewDataSet></diffgr:diffgram><
/MedlemData></string>

The beginning looks like this

  <string xmlns="http://tempuri.org/"><?xml version="1.0" encoding="utf-16"?>
<MedlemData><xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><xs:element name="NewDataSet"
msdata:IsDataSet="true" msdata:Locale="sv-SE"><xs:complexType><xs:choice maxOccurs="unbounded">
<xs:element name="MEDL"><xs:complexType><xs:sequence><xs

What have I done wrong?

(I have tried this also
LoadNodeList(XMLDocument,XMLNodeList,'MedlemData/MedlemData');
:cry: )


Top
 Profile  
 
 Post subject: Re: XML Import Sample v1.0i
PostPosted: Thu May 21, 2009 5:11 pm 
Offline

Joined: Thu May 14, 2009 6:00 pm
Posts: 18
Country: Slovakia (sk)
can somebody post the content of codeunit XML Import Sample ?
I dont have rights to run or read it and i hope i will be able to create one.


Top
 Profile E-mail  
 
 Post subject: Re: XML Import Sample v1.0i
PostPosted: Mon Mar 12, 2012 1:25 pm 
Offline

Joined: Wed Sep 30, 2009 1:20 pm
Posts: 17
Country: Denmark (dk)
Post deleted

_________________
Regards
Christian
---------------------------------------------------
"If I had only known, I would have been a locksmith."
- Albert Einstein


Last edited by Christian Wandborg on Tue Mar 13, 2012 9:48 am, edited 1 time in total.

Top
 Profile E-mail  
 
 Post subject: Re: XML Import Sample v1.0i
PostPosted: Tue Mar 13, 2012 9:41 am 
Offline
Site Admin

Joined: Sun Nov 07, 1999 8:01 am
Posts: 1900
Location: Wilrijk, Belgium
Country: Belgium (be)
Don't use an image attachment to display your error message. In NAV, you can use Ctrl-C on a error message, to capture the error in text format, so you can paste that in your posting.

Why?
a) to conserve disk space
b) people with the same error can't use search to find your topic, as you can't search in images


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: