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
I have a xml document as below and in Xslt I need to get the person name on the basis of email id as in below xml file , contributor node contain email id and associated name is included in Epic node can any body help me to get the name for each contributor through xpath?
I really don`t understand schemas namespaces and reading books also not clear my mind. My questions are:
- what's the difference between xmlns and targetNamespace
- if I change the targetNamespace of the schema pointing to one urn of my own all schema, which before was working, start having errors, I thought that targetNamespace point to one opaque urn and taht you can change it?.
- also some books mention that if you are to validate a Xml file with a schema the elements of both files must belong to the sames namespace, but the only way I get validation working is if I don´t set any namespace in the Xml file.
Please could somebody explain me shortly the rules for this schema namespace or some link where it's clearly explained, no so ambiguous explanations as I found until now.
Last Visit: 31-Dec-99 19:00 Last Update: 24-Jan-21 9:00