XML File inquiry

Questions about XML that are not covered by the other forums should go here.
kevindd992002
Posts: 2

XML File inquiry

Thu Oct 16, 2014 8:53 am

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.
adrian
Posts: 2451

Re: XML File inquiry

Thu Oct 16, 2014 10:43 am

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
kevindd992002
Posts: 2

Re: XML File inquiry

Thu Oct 16, 2014 4:17 pm

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


That makes sense. So you're saying that the values are correct and seems to be reflecting in the XML file?
adrian
Posts: 2451

Re: XML File inquiry

Thu Oct 16, 2014 4:36 pm

kevindd992002 wrote:That makes sense. So you're saying that the values are correct and seems to be reflecting in the XML file?

Yes!
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests