Click here to Skip to main content
14,835,369 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to get Microsoft Infopath XML generated file to work with the Web? Pin
kcgnd15-Jul-09 2:01
Memberkcgnd15-Jul-09 2:01 
AnswerRe: How to get Microsoft Infopath XML generated file to work with the Web? Pin
Sandy_L_Schultz18-Jul-09 8:20
MemberSandy_L_Schultz18-Jul-09 8:20 
GeneralRe: How to get Microsoft Infopath XML generated file to work with the Web? Pin
Sandy_L_Schultz19-Jul-09 12:43
MemberSandy_L_Schultz19-Jul-09 12:43 
GeneralRe: How to get Microsoft Infopath XML generated file to work with the Web? Pin
Member 120804822-Jul-09 8:52
MemberMember 120804822-Jul-09 8:52 
QuestionHow to calling GetObject() in XML? Pin
whiteclouds14-Jul-09 17:10
Memberwhiteclouds14-Jul-09 17:10 
AnswerRe: How to calling GetObject() in XML? Pin
Roll#114-Jul-09 21:10
MemberRoll#114-Jul-09 21:10 
GeneralRe: How to calling GetObject() in XML? Pin
whiteclouds19-Jul-09 20:21
Memberwhiteclouds19-Jul-09 20:21 
QuestionValidate Xml without using xmlns Pin
tprakash14-Jul-09 2:05
Membertprakash14-Jul-09 2:05 
Hi,

I have the xml document like,
<?xml version="1.0" encoding="utf-8"?>
<Drive>
<folders>
<folder name="f1">
</folder>
<folder name="f2">
</folder>
</folders>
</Drive>

Please notice that there is no xmlns used and I cannot used xmlns in this xml document.

I have problem creating schema (.xsd) file to validate this xml document.
My schema is like

<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.tempuri.com/temp"
elementFormDefault="qualified">
<element name="Drive">
<complexType>
<sequence>
<element ref="folders" minOccurs="0" maxOccurs="1"/>
</sequence>
</complexType>
</element>

<element name ="folders">
<complexType>
<sequence minOccurs ="0" maxOccurs ="unbounded">
<element ref ="folder"/>
</sequence>
</complexType>
</element>

<element name ="folder">
<complexType>
<sequence>
<element ref ="folders" minOccurs ="0" maxOccurs="1" />
</sequence>
<attribute name ="name" type="string" />
</complexType>
</element>
</schema>


But the ref attribute is not working. ie the attribute 'folders' cannot reference the element 'folders'. I am using VS2008 to create/edit xsd file. VS2008 shows warning message
"The 'http://www.w3.org/2001/XMLSchema:folders' element is not declared.". The same exception occurs if I run my c# program to valid the xml.

Could you please suggest me how to refernce element using ref attribute without using namespace? Is there any other workaround?

Thanks.
Prakash
AnswerRe: Validate Xml without using xmlns Pin
Stuart Dootson14-Jul-09 2:36
professionalStuart Dootson14-Jul-09 2:36 
AnswerRe: Validate Xml without using xmlns Pin
Roll#114-Jul-09 21:25
MemberRoll#114-Jul-09 21:25 
QuestionNeed help arguing *against* XML for localization storage. Pin
James Trudel13-Jul-09 10:40
MemberJames Trudel13-Jul-09 10:40 
AnswerRe: Need help arguing *against* XML for localization storage. Pin
Stuart Dootson13-Jul-09 13:19
professionalStuart Dootson13-Jul-09 13:19 
QuestionDifferent XSD representation of an element. Pin
Comp_Users11-Jul-09 7:12
MemberComp_Users11-Jul-09 7:12 
AnswerRe: Different XSD representation of an element. Pin
Stuart Dootson11-Jul-09 7:38
professionalStuart Dootson11-Jul-09 7:38 
GeneralRe: Different XSD representation of an element. Pin
Comp_Users13-Jul-09 0:54
MemberComp_Users13-Jul-09 0:54 
Questionhow to use select result in another select [modified] Pin
daveyerwin9-Jul-09 4:19
Memberdaveyerwin9-Jul-09 4:19 
AnswerRe: how to use select result in another select Pin
Jeremy Likness9-Jul-09 7:40
professionalJeremy Likness9-Jul-09 7:40 
GeneralRe: how to use select result in another select Pin
daveyerwin9-Jul-09 9:02
Memberdaveyerwin9-Jul-09 9:02 
AnswerRe: how to use select result in another select Pin
Stuart Dootson9-Jul-09 13:03
professionalStuart Dootson9-Jul-09 13:03 
QuestionGenerating multiple files using XSLT 1.0 Pin
Fadi Yoosuf8-Jul-09 5:33
MemberFadi Yoosuf8-Jul-09 5:33 
AnswerRe: Generating multiple files using XSLT 1.0 Pin
Stuart Dootson8-Jul-09 7:27
professionalStuart Dootson8-Jul-09 7:27 
GeneralRe: Generating multiple files using XSLT 1.0 Pin
Fadi Yoosuf8-Jul-09 20:40
MemberFadi Yoosuf8-Jul-09 20:40 
GeneralRe: Generating multiple files using XSLT 1.0 Pin
Fadi Yoosuf8-Jul-09 20:45
MemberFadi Yoosuf8-Jul-09 20:45 
GeneralRe: Generating multiple files using XSLT 1.0 Pin
Stuart Dootson9-Jul-09 0:23
professionalStuart Dootson9-Jul-09 0:23 
QuestionXSL Sort Pin
bbm2k35-Jul-09 9:31
Memberbbm2k35-Jul-09 9:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.