As declared in w3.org there is predefined derived type in XSD schemas - the ENTITY. This type is used for attributes, which means are unparsed entities from DTD. Using of the ENTITY as attribute type in schema is not problem (no errors for the schema self-validation) but:
1. XML file didn't pass the schema validation - the XML file didn't find unparsed entities declared in the schema DTD (that's right - it is the schema DTD only) and from other hand the XML file DTD eliminates schema using (that's right too - the DTD is closed model). How to use the ENTITY type?
2. In XSD schemas there is predefined base type - NOTATION. The NOTATION takes values from the schema set of <notation> elements. In other words this replaces using of DTD NOTATION as attribute type. May be it is for the ENTITY type too?
Sorry sir, can You show how You succeed? I can't validate this example. I have used Microsoft XML paser (DOM). There is error - Element "purchaseOrder" is used but not defined in DTD and schema. But there is the validation when I am commenting DTD in the XML file (and deleting symbol "&" for conversion entity to string literal). My JScript code fragment follows. Tell me please, where I have mistaken?
Trez bien! Thank You very much! Your code is working without errors, validation is passed. But Your code converted to JScript is working with the same errors. Hence there are errors in the Ms COM implementation of Xml parser.
Hi! Unfortunly, our long and winding road is continuing. The Ms .NET XML parser is not finished too. After passing Your successfull example, I tried to pass example of using unparsed entity. I added some entity and it notation in the DTD and some attribute definition of the ENTITY type in the schema. After I added this attribute with the unparsed entity value and executed Your program. The test was ok. But after I assigned to the attribute improper value (not unparsed entity) and test was once again ok! After my tests I have a mind that the parser checks attributes of the ENTITY type as of the the NCName type (the direct ancestor of the ENTITY type). The XML file and schema is here:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE change-history [
<!ENTITY eacute "é">
<!NOTATION MyNotation SYSTEM "My Notation">
<!ENTITY MyEntity SYSTEM "My Entity" NDATA MyNotation>
<change-history product="Sample" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="change-history.xsd">
<version number="2.21.0" entity = "MyEntity">
<change reason="issue 11">Added license to executable.</change>
<change>éFixed bug in executable.</change>
When I try to open xml, that i created myself with IE, i get error: "There was a problem sending the command to the program". With this error showed IE also opens this xml. On the other side when i open it with Firefox, it opens xml without errors. What could be wrong with xml, that IE doesn't open it without errors?
I have a DLL file I have been modifying but I'm stuck.
Inside the DLL are several duplicate xml files,images.............
What I am trying to do is change a reference in the xml file from calling 1 of the bitmaps
embedded in the dll to a folder location with the same named bitmap allowing for changing
the bitmap without editing the dll.
the xml code for referencing the bitmap looks like this background = "resbmp(12260,7,-1,0,0,1,1)" 12260 being the bitmap name ,7,-1,0,0,1,1 being the dimensions, transparency...
how would I go about changing the resbmp reference to a folder location such as c:user\Desktop\Images\12260.bmp