linebreak in xml files

belzebupke
Member Posts: 4
hi everybody,
I'm trying to write xml files, when I view them in Internet Explorer, everything looks ok. When I view them in Notepad everything is in one line. How can I let Notepad looks the same as IE ?
I'm trying to write xml files, when I view them in Internet Explorer, everything looks ok. When I view them in Notepad everything is in one line. How can I let Notepad looks the same as IE ?
0
Comments
-
Why do you want this? It is normal for an xml file to be like this.0
-
we work together with a company and they told us that they couldn't import them if they don't look like this. there are several other company's who have to send the xml files, but we are the only one with navision.0
-
Did you try to open file in WordPad (or Word)?0
-
yes, I've tried, but the same. I always become this :
<?xml version="1.0" encoding="ISO-8859-1"?>
<FAHR_DATA><FAHRT><FAR><FAR_FAHR/><FAR_TSBE/><FAR_TSEN/><FADA><FAR_FANR/><FAR_TANA/><FAR_FAID>91515</FAR_FAID><FAR_AGID>91518</FAR_AGID></FADA> ....0 -
You have to open the file after is has been created by the xmlport and add cariage retun linefeed after each >.
It should be posted somewhere on the forum how to do that.0 -
Maybe a silly question
Are you really sure, they really need the linebreaks for processing? Linebreak is not part of the xml definition and normally the xmlfiles are not parsed as a textfile but loaded into the DOM (document object model) from where the parsing happens with methods, e.g. SelectSingle, etc.
Regards
Thomas0 -
While linebreaks are not part of the standard, and they are strictly speaking not necessary to have wellformed XML, some developers at some software companies have interpreted it that way, and made their parsers work only if they are present.
Sometimes you just have to work with the company you are trying to communicate with and format something in a specific way, even if it doesn't conform. I would certainly try to get the other guy to conform, but I'd rather send my time making the software work than argue about adhering to standards.0 -
DenSter wrote:Sometimes you just have to work with the company you are trying to communicate with and format something in a specific way, even if it doesn't conform. I would certainly try to get the other guy to conform, but I'd rather send my time making the software work than argue about adhering to standards.
I fully agree with you, but sometimes you get some wrong information in the first time. After asking again and explaining the problem the answer is sometimes less stringent. At least this is my personal experience.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