|
|
Yea I'm on this document already and still looking for some serious Output
|
|
|
|
|
hi i want to add & in the element name and text it shows error
how i can add pls suggest a solution
i want like this <&Name>&Ram&</&Nmae>
with regards
Balagurunathan.B
|
|
|
|
|
& is what you need.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You cannot use & or & in an element name. An element name has to begin with a letter or an underscore.
-- modified at 9:45 Thursday 9th August, 2007
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
ok then can we add it as inner text
again it shows error on that case also
with regards
Balagurunathan.B
|
|
|
|
|
It is also forbidden in other parts of the element name.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
why do i get an error when trying to insert "PCI\VEN_1106&DEV_3038&SUBSYS_30381849&REV_81\3&267A616A&0&80" as value of my xml element...
i'm new to xml. pls help. thanks
|
|
|
|
|
What's the error you get ? How are you inserting it ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
This is the error message "An error occurred while parsing EntityName. Line 1, position 160."
This is the code upon insertion:
elmXML = docXMLFile.CreateElement(element);
elmXML.InnerXml = strNewLine.ToString();
docXMLFile.DocumentElement.AppendChild(elmXML)
the error occurs on the second line.
|
|
|
|
|
i think it's due to the & sign in your string.
|
|
|
|
|
yes, i guess so too.. if it has the single "\", it won't accept the string? so how will i go about it?
|
|
|
|
|
u have to replace & with sth. that is allowed in plain html
i think u should replace & with &
for more info.
http://www.html-reference.com/Escape.htm
|
|
|
|
|
hi all,
I have a problem in xslt,xml
I have written an xml file and calling the ASP.NET server controls using xslt in my code behind sheet.
Now i want to add an button which will redirect to next aspx page can any one help me how to write button click events in xslt.
Thank you
santosh
|
|
|
|
|
A button click event is just an attribute, although I'm not sure how you can create a dynamic aspx file, if I read you correctly.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Its simple.. Add a attribute tag to your button and do this...
Eg:
<xsl:attribute name="onclick">
<xsl:variable name="url">
<xsl:text>document.location='
<xsl:value-of select="'YourPagename.aspx'">
<xsl:text>'
<xsl:value-of select="$url">
Hope this works..
Thanks & Regards,
Gore
|
|
|
|
|
Hi all,
How to allow the boolean value 'True' or 'TRUE' in a XML file.
Generally when we specify the restriction in xsd as
<xs:extension base="xs:boolean">
When this is specified in xsd, it allows only 'true' 'false' or 0 or 1.
How does this allow 'True' or 'TRUE' in XML.
Please Help..
Thanks.
|
|
|
|
|
Cannot see the xsd snippet.
Either turn all < into &am;lt; or check the "Ignore HTML tags in this message" beneath the smilies.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
<xs:extension base="xs:boolean">
|
|
|
|
|
You can define your own type that allows either a standard boolean or some specific string value.
<xs:simpleType name="mybool">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:boolean" />
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="True" />
<xs:enumeration value="TRUE" />
<xs:whiteSpace fixed="true" value="collapse" />
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de
|
|
|
|
|
Hey Stefan,
Thank you very much for the help
But when i run the code, i get an error the following error..
Cannot load the schema for the namespace "- The 'http://www.w3.org/2001/XMLSchema:enumeration' element is not supported in this context..
Please let me know about this one too..
Thanks.
|
|
|
|
|
Hard to say without having more information:
What does the code do you that are running? What do you use to work with XML?
Also it would be helpful too see more of your schema; at least the component that should contain the extended boolean.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
<xs:complexType name="boolean">
<xs:simpleContent>
<xs:extension base="xs:boolean">
<xs:attribute name="description" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Now this code should allow the usage of 'True' or 'TRUE' or 'False' or 'FALSE'.
Please let me know how to modify in your context.
Thanks.
|
|
|
|
|
We are using the schema version:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
|
|
|
I have created this schema with VS and it doesn't complain:
<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="mybool">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:boolean" />
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="True" />
<xs:enumeration value="TRUE" />
<xs:enumeration value="False" />
<xs:enumeration value="FALSE" />
<xs:whiteSpace fixed="true" value="collapse" />
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:complexType name="boolean">
<xs:simpleContent>
<xs:extension base="mstns:mybool">
<xs:attribute name="description" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de
|
|
|
|