Jump to content

Huma

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Huma

  • Rank
    Newbie
  1. DEAR ALL,I WANT TO USE FOLLOWING SCHEMA FILE <?xml version="1.0" encoding="UTF-8" ?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com" xmlns="http://www.example.com"> <!-- global element declaration validates <language> elements from http://www.example.com namespace --> <xs:element name="language" type="xs:string" /> <xs:element name="Root" type="sequenceOfLanguages" /> <xs:element name="Root2" type="sequenceOfLanguages2" /> <!-- complex type with local element declaration validates <language> elements without a namespace name --> <xs:complexType name="sequenceOfLanguages" > <xs:sequence> <xs:element name="language" type="xs:NMTOKEN" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <!-- complex type with reference to global element declaration --> <xs:complexType name="sequenceOfLanguages2" > <xs:sequence> <xs:element ref="language" maxOccurs="10" /> </xs:sequence> </xs:complexType></xs:schema>WITH THIS XML FILE.<?xml version="1.0"?><ex:Root xmlns:ex="http://www.example.com"> <language>EN</language> </ex:Root> BUT IT IS NOT WORKING.I AM NOT GETTING THE CONCEPT OF LOCAL AND GLOBAL ELEMENTS IN SCHEMA.CAN ANYBODY HELP ME?BEST REGARDSHUMA
  2. Helloi am new with schema and facing many problems in it.Consider an a piece of xml file below<artist>Nusrat <lastname>Ali</lastname></artist>I want to restrict "Nusrat" in XML schema but not getting how?can anybody help me out?Best RegardsHuma
  3. Huma

    Sequence in schema

    Hello All,I am new with schema.In schema file i want to restrict that in my xml file artist either has a child fullname or combination of firstname and lastname in arbitrary order, but each just once.xml file is like this.<catalog><cd><artist>Huma Khan</artist><country>Pakistan</country></cd><cd><artist><firstname>mona</firstname><lastname>ali</lastname></artist><country>India</country></cd><cd><artist><lastname>Khan</lastname><firstname>Imran</firstname></artist><country>Pakistan</country></cd></catalog>How can i restrict this in schema file.Thanx in advanceHuma
  4. Helloi am not getting how to use server side script to extract news from a xml file and save them seperately in text files?i want to save every news in a seprate text file.is there any other way to do this?Can u give me idea?Thanx in advanceHuma
  5. Huma

    output in text file

    Helloi am not getting how to use server side script to extract news from a xml file and save them seperately in text files?i want to save every news in a seprate text file.is there any other way to do this?Can u give me idea?Thanx in advanceHuma
  6. Dear All,i want to extract news from xml file and then save these news seperately in text file by using xslt.i"ll use xsl:out ,am i right?but how news will be saved automatically in seperate text file.Thanx in advanceHumaBye
  7. Huma

    max of numbers

    HelloHow can i find maximum of numbers in xsl from xml file like<doc><value>3</value><value>11</value><value>3</value><value>2</value><value>12</value><value>5</value><value>0</value><value>7</value></doc>without using max function of XPath2.Thanx in advanceHuma
  8. Huma

    SOAP code?

    HelloI am new with SOAP and not getting where to put SOAP request and response code?Best RegardsHuma
×
×
  • Create New...