Most voted "xml-schema" questions
An XML Schema is the specification of an XML document _type that describes the structure, content, and rules for forming XML instances (documents) that will be considered valid in relation to the schema. The rules determine data types for text contained in the elements and attributes, element hierarchies structure, boolean predicates, and other rules that restrict document content beyond the syntax constraints imposed by XML itself.
Learn more…17 questions
Sort by count of
-
3
votes2
answers173
viewsSimple XML Reader does not work properly
I’ve been using the Simplexmlreader to try to extract data from the following XML structure: <boutique> <produto num="228122907">…
-
3
votes2
answers124
viewsSimple XML Reader: I can’t convert nodes to HTML or limit the number of items
I’ve been using the Simplexmlreader to parse a gigantic XML structure, which has more than 25mb. My code works normally, but I’m having two problems: I can’t turn the Xpath in HTML. Well, I’ve…
-
2
votes1
answer101
viewsHow to restrict SAML 2.0’s Authentication Context XSD
I’m trying to restrict the Authentication Context XML Schema Definition of specification SAML 2.0. The XSD document is available at here. The part I’m trying to narrow down is one related to this…
-
2
votes1
answer393
viewsHow to generate an XML schema, where I have some nodes with namespace and others without
I am trying to generate an XML schema, for future validations, where some attributes contain a specific namespace, and others do not: <?xml version="1.0" encoding="UTF-8"?> <root…
-
2
votes0
answers228
viewsParsing an XML and its respective XSD
Precise parse a WADL manually and create an XML with specifications I have here. Example: -> Yahoosearch.wadl file [...] <application * xmlns:yn="urn:yahoo:yn" * > <grammars>…
-
2
votes0
answers31
viewsXSD with Schema with Restriction "Pattern, enumeration, max and min" Java
I’m trying to generate a wsdl where it will generate a xsd reflecting the classes of entities. The problem is, I can’t generate the Restriction in xsd as required by each property of the appropriate…
-
2
votes0
answers45
viewsXML reading in VB.NET
Good morning gentlemen, I’m having a hard time reading some XML fields. For example, I am developing a sales software and at the time of reading the XML for printing it is pulling only one item…
-
1
votes0
answers155
viewsHow to replace an "import" statement within an XML schema with the XSD content to be imported?
I have the following XML Schema tag: <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212.xsd" /> And I’d like to know how to replace that…
-
1
votes0
answers1019
viewsHow to generate an XML template from an XSD SCHEMA using JAXB?
I have a Schema . XSD and would like to generate an XML from this template. Below I have this code, however I am using the Jlibs library. I wonder if it is possible to do something similar to the…
-
1
votes1
answer2079
viewsGenerate C# class from XSD
I need to generate the class from a file. XSD. Though I’ve tried everything I know (used . net tool: xsd.exe, httputility.net and other . Cs generators) did not succeed. I think the mistake is in…
-
1
votes1
answer49
viewsInclude Default XML namespace
Srs(as), good morning, I am generating an XML from the serialization of a class.Cs(schema) and the output is created xml (first example) . This will be exported to an external system, however they…
-
0
votes1
answer1049
viewsPentaho 4.8 - Importing a Schema (Cube)
I am using Pentaho 4.8 with Saiku, and would like to know how I configure a cube (xml file created in Schema Workbench). Previously I was using Pentaho 5, it was enough to add Datasource and…
-
0
votes0
answers81
viewsFormat data(date sql type) with javascript without changing the type
Take a date field of type date yyyy-MM-dd (sql) use a javascript function directly in the XML file to show this date in dd-MM-yyyy format without changing the type, remaining Date. It is possible?…
-
0
votes1
answer224
viewsThe ref attribute of an element of the xml schema document
I’m making an Xs xml file generator, but I’m wondering if some parts should be filled. <xs:element name="identificacao"> <xs:complexType> <xs:sequence> <xs:element…
-
0
votes1
answer190
viewsXmlserializer generates empty file space before closing tag
I am using the following code to generate an xml: public bool SerializarObjeto(object o, string pathArquivo) { var xns = new XmlSerializerNamespaces(); XmlSerializer writer = new…
-
0
votes0
answers540
viewsHow to read the xsd file from within my C#project
I’m validating an xml from an xsd file this way: XmlSchemaSet schemaSet = new XmlSchemaSet(); schemaSet.Add("urn:bookstore-schema", @"D:\Arquivo\VoltVarPlanning.xsd");…
-
0
votes1
answer363
viewsHow to add XML encoding tag
How to add XML encoding clause <?xml version="1.0" encoding="UTF-8"?> When you generate XML via FOR XML PATH as an example below: SQL query: WITH XMLNAMESPACES (DEFAULT…