XML File inquiry
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2
- Joined: Thu Oct 16, 2014 8:45 am
XML File inquiry
Post by kevindd992002 »
I don't have any knowledge about XML's but I'm troubleshooting something with a program. Please download two files from here:
https://www.dropbox.com/sh/nm46901hko8t ... 7Q8Da?dl=0
Basically, the program uses the xml file there to connect to a remote SQL server for its database. In the same folder where that XML file is, there are configuration text files that I believe the XML is using because when I check the source code of the XML file those text files are indicated in the top section. One of the files in the link above is something called dbcfg_IsSeperateSQLServer.txt. What I did is to changed the content of that txt file from 0 to 1 but why does it no reflect in the XML file when I double-click it and it opens in IE? The same goes with the other configuration text files. Any changes I make in those text files do not reflect on the XML file. Isn't the XML file paarsing the content of those configuration text files for the proper settings?
Please help. Thanks.
https://www.dropbox.com/sh/nm46901hko8t ... 7Q8Da?dl=0
Basically, the program uses the xml file there to connect to a remote SQL server for its database. In the same folder where that XML file is, there are configuration text files that I believe the XML is using because when I check the source code of the XML file those text files are indicated in the top section. One of the files in the link above is something called dbcfg_IsSeperateSQLServer.txt. What I did is to changed the content of that txt file from 0 to 1 but why does it no reflect in the XML file when I double-click it and it opens in IE? The same goes with the other configuration text files. Any changes I make in those text files do not reflect on the XML file. Isn't the XML file paarsing the content of those configuration text files for the proper settings?
Please help. Thanks.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XML File inquiry
Hello,
I've looked at the files and everything seems to be in order XML-wise. If I open the XML in Oxygen and switch to Author mode or apply a transformation, the external entity is correctly resolved and expanded to the value specified in the .txt file.
The problem in your case is that you're using the wrong tool to check if this works. Web browsers in general do not support external entities for security reasons. So, you cannot see the expanded entity values if you open the XML in a web browser, you need a proper XML parser for this job.
I believe this may have worked in older versions of IE which did not consider external entities a security concern, however this does not seem to work in IE 9 and later.
Regards,
Adrian
I've looked at the files and everything seems to be in order XML-wise. If I open the XML in Oxygen and switch to Author mode or apply a transformation, the external entity is correctly resolved and expanded to the value specified in the .txt file.
The problem in your case is that you're using the wrong tool to check if this works. Web browsers in general do not support external entities for security reasons. So, you cannot see the expanded entity values if you open the XML in a web browser, you need a proper XML parser for this job.
I believe this may have worked in older versions of IE which did not consider external entities a security concern, however this does not seem to work in IE 9 and later.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Thu Oct 16, 2014 8:45 am
Re: XML File inquiry
Post by kevindd992002 »
That makes sense. So you're saying that the values are correct and seems to be reflecting in the XML file?adrian wrote:Hello,
I've looked at the files and everything seems to be in order XML-wise. If I open the XML in Oxygen and switch to Author mode or apply a transformation, the external entity is correctly resolved and expanded to the value specified in the .txt file.
The problem in your case is that you're using the wrong tool to check if this works. Web browsers in general do not support external entities for security reasons. So, you cannot see the expanded entity values if you open the XML in a web browser, you need a proper XML parser for this job.
I believe this may have worked in older versions of IE which did not consider external entities a security concern, however this does not seem to work in IE 9 and later.
Regards,
Adrian
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XML File inquiry
Yes!kevindd992002 wrote:That makes sense. So you're saying that the values are correct and seems to be reflecting in the XML file?
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service