Jump to content

pavankumard

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About pavankumard

  • Rank
    Newbie
  • Birthday 09/08/1983

Profile Information

  • Location
    Bangalore
  1. I am sorry, I didnt put the question properly. The schema should also suppor the tags like<NumericField Number="1">123.456</NumericField> , here 123.456 is just an example, it can any valid decimal number.so, in addition to the above it should also support the below tag..<NumericField Number="1" />
  2. Hi, I have an element NumericField as shown below. ......... <xs:element name="NumericField" nillable="true" minOccurs="0" maxOccurs="unbounded" > <xs:complexType> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:attribute name="Number" form="unqualified" type="xs:integer" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> ....... In the input XML for above schema i should be able to pass a tag like <NumericField Numb
  3. Hi, Is there any way to do the following using XSD? The XML is as follows. <Data> <UserId /> <Password /> <LoggedInDate /> ...... </Data> All tags have minOccurs="0" The XSD should be able to validate the following constraint ... If the <UserId> tag is passed then <Password> tag also should be passed. can I write an XSD for the above.Thanks & Regards,Pavan.
  4. But when I try giving some junk URI as namespace and use that namespace to qualify the existing instructions, it works as usual !! This brings me ambiguity in understanding the innerworking. The following example works!!<xsl:stylesheet xmlns:xsl="http://junk.com"> <xsl:if test="...."> <SomeTag> <xsl:value-of select=".."> </SomeTag> </xsl:if><xsl:stylesheet>I didnt understand, why we are supposed to supply "http://www.w3.org/1999/XSL/Transform" and not some junk value.Thanks in advance.Pavan Kumar D.
  5. Hi,From W3 Schools, I got the following information.----------------------------------------------------------------------------------------------------------------------------------------------------xmlns:xs="http://www.w3.org/2001/XMLSchema" indicates that the elements and data types used in the schema come from the "http://www.w3.org/2001/XMLSchema" namespace. It also specifies that the elements and data types that come from the "http://www.w3.org/2001/XMLSchema" namespace should be prefixed with xs:--------------------------------------------------------------------------------------------
  6. Hi,The sample XML document is as follows:<Document> <Type>4</Type> <Name/> <Age/> <Location/></Document>I need to validate the document using XSD. The constriant here is if Type = 4 then it should have all the <Name>, <Age>, <Location> elements.if Type = 3 then it should have only <Location> element.Can we write an XSD for this?Thanks in advance.Pavan.
  7. Hi, While building an XML document, which one should I choose between elements and attributes (the classical conflict)? Which one would give me better performance, while parsing with DOM.Thanks in advance,Pavan.
×
×
  • Create New...