Representing text >250 in a XML file

sirvent80
Member Posts: 3
Hi guys!
Let's see if somebody could give me some tips on this topic.
What I basically want to do is to export an XML file with a tag containing a description with more than 250 char.
What I mean is something like this:
<description>"This test must be bigger than 250 char..."</description>
The data comes from a temporary table that I create to sum all the fields I need from other tables, and I can't find a proper solution since:
-BLOB data type stores the information as binary code.
-I can only use Bigtext as a variable but no as data type in a table.
Thanks in advance from a newbie!
Let's see if somebody could give me some tips on this topic.
What I basically want to do is to export an XML file with a tag containing a description with more than 250 char.
What I mean is something like this:
<description>"This test must be bigger than 250 char..."</description>
The data comes from a temporary table that I create to sum all the fields I need from other tables, and I can't find a proper solution since:
-BLOB data type stores the information as binary code.
-I can only use Bigtext as a variable but no as data type in a table.
Thanks in advance from a newbie!
0
Comments
-
You can stream data into and out of a BLOB. If you use the C/SIDE Reference Guid and look up the WRITE and READ commands they have examples on how to stream data into and out of BLOB Objces. Note that I pulled this directly from the WRITE help item.
Example: How to stream a BigText to a BLOB field in a table.
Variables:
bstr - BigText
table - record variable with a field called BlobField that is of type BLOB
ostream - OutStreambstr.ADDTEXT('This is the text string that we want to store in a BLOB field.'); table.BlobField.CREATEOUTSTREAM(ostream); bstr.WRITE(ostream); table.INSERT();
0 -
I know that I can store bigtext into a BLOB data type, but I have the problem when I export the info to a XML file, the information in the tag containing the BLOB data type looks like this:
<description>*</description>
...and I need something "legible".0 -
I've seen some problems with longer strings in XML and Nav.
One of the other things you may have to do is intercept the Outstream from the XML Port and use the XML DOM API's to modify the data in a specific element (i.e. the Description Element). It's not really a pretty solution but it may be what you need to do to get around this particular problem that you are experiencing.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions