Click here to Skip to main content
14,743,331 members
Home » Discussions » XML / XSL
   

XML / XSL

 
QuestionXSLT help Pin
Aljaz11124-Mar-10 5:39
MemberAljaz11124-Mar-10 5:39 
AnswerRe: XSLT help Pin
PIEBALDconsult24-Mar-10 6:04
professionalPIEBALDconsult24-Mar-10 6:04 
GeneralRe: XSLT help Pin
Aljaz11124-Mar-10 6:13
MemberAljaz11124-Mar-10 6:13 
QuestionSerializing a complex object to XML [modified] Pin
CDP180222-Mar-10 23:39
MemberCDP180222-Mar-10 23:39 
Questionbuild one xml element with few childs Pin
Aljaz11122-Mar-10 17:04
MemberAljaz11122-Mar-10 17:04 
QuestionXQUERY fn:replace() inserting spaces? Pin
tom_masciovecchio12-Mar-10 11:17
Membertom_masciovecchio12-Mar-10 11:17 
Questionnew to xml..please help.. Pin
A-MEN12-Mar-10 10:11
MemberA-MEN12-Mar-10 10:11 
AnswerRe: new to xml..please help.. Pin
SeMartens18-Mar-10 22:36
MemberSeMartens18-Mar-10 22:36 
Hi,

you have to change the root of your schema file to

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mynamespace/mydetails">


This will define the xs prefix and the namespace you want to create.

Within your xml file you have to put a reference to the schema by changing the root to this:

<details xmlns="http://mynamespace/mydetails">


Here the namespace is imported without a prefix. But pay attention if you need to validate the xml (if it is valid according to the schema). The reference will be resolved by a DefaultResolver. This one will not find the schema file until you give it a hint.

Simple code to validate an XML file against a schema file (XSD)[^]

Regards
Sebastian
It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

AnswerRe: How to convert portlet into gadget Pin
Not Active12-Mar-10 5:32
mentorNot Active12-Mar-10 5:32 
QuestionHelp Finding Content Pin
jammmie9996-Mar-10 5:16
professionaljammmie9996-Mar-10 5:16 
AnswerRe: Help Finding Content Pin
Stuart Dootson6-Mar-10 6:06
professionalStuart Dootson6-Mar-10 6:06 
GeneralRe: Help Finding Content Pin
jammmie9996-Mar-10 7:17
professionaljammmie9996-Mar-10 7:17 
NewsBuilding Web 2.0 UIs with JSF, Realtime Updates with JSF and Ajax Push Taught at GIDS 2010 Pin
Shaguf Mohtisham3-Mar-10 21:31
MemberShaguf Mohtisham3-Mar-10 21:31 
QuestionVS2005 doesn't like my XML Schema Pin
gritter3-Mar-10 6:10
Membergritter3-Mar-10 6:10 
AnswerRe: VS2005 doesn't like my XML Schema Pin
gritter3-Mar-10 7:41
Membergritter3-Mar-10 7:41 
AnswerRe: VS2005 doesn't like my XML Schema Pin
Stuart Dootson6-Mar-10 5:58
professionalStuart Dootson6-Mar-10 5:58 
GeneralRe: xml code editor Pin
Covean2-Mar-10 23:21
MemberCovean2-Mar-10 23:21 
QuestionMultiple children in Node question Pin
RCoate1-Mar-10 21:04
MemberRCoate1-Mar-10 21:04 
AnswerRe: Multiple children in Node question Pin
Stuart Dootson1-Mar-10 22:02
professionalStuart Dootson1-Mar-10 22:02 
GeneralRe: Multiple children in Node question Pin
RCoate1-Mar-10 22:56
MemberRCoate1-Mar-10 22:56 
GeneralRe: Multiple children in Node question Pin
Stuart Dootson1-Mar-10 23:04
professionalStuart Dootson1-Mar-10 23:04 
GeneralRe: Multiple children in Node question Pin
RCoate2-Mar-10 12:16
MemberRCoate2-Mar-10 12:16 
AnswerRe: Multiple children in Node question Pin
RCoate2-Mar-10 20:35
MemberRCoate2-Mar-10 20:35 
GeneralRe: Multiple children in Node question Pin
Stuart Dootson2-Mar-10 22:46
professionalStuart Dootson2-Mar-10 22:46 
QuestionHow to de-batch very large XMLDocument into bit size chunks Pin
ONeil Tomlinson28-Feb-10 8:39
MemberONeil Tomlinson28-Feb-10 8:39 

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.