Questions tagged as 'xml-schema'

2
answers

Simple XML Reader: I can not convert nodes to HTML or limit the number of items

I've used SimpleXMLReader to make parse of a gigantic XML structure, that has more than 25mb. My code works normally, however, I have two problems: I can not turn Xpath into HTML . Well, I studied it, and I saw that it's n...
asked by 05.06.2017 / 09:46
2
answers

Simple XML Reader does not work correctly

I have used SimpleXMLReader to attempt to extract data from the following XML structure: <boutique> <produto num="228122907"> <id_produto><![CDATA[70427038]]></id_produto> <...
asked by 28.05.2017 / 21:34
1
answer

How to generate an XML schema, where I have some nodes with namespace and others without

I'm 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 xmlns:g="http://base.google.com/ns/1.0" version="2.0">...
asked by 22.09.2014 / 21:47
0
answers

XSD with Schema with restriction "pattern, enumeration, max and min" Java

I'm trying to generate a wsdl where it will generate xsd reflecting entity classes. The problem is that I can not generate the restriction in xsd as needed by each property of the appropriate classes. What I'm generating: <xs:co...
asked by 23.08.2018 / 16:08
1
answer

How to restrict the XSD of the SAML 2.0 Authentication Context

I'm trying to restrict the Authentication Context XML Schema Definition of the SAML 2.0 specification. The XSD document is available at here . The part I'm trying to restrict is one related to this part of the original XSD:...
asked by 17.02.2014 / 22:01
0
answers

Parsing an XML and their respective XSD

I need to parse a WADL manually and create an XML specification that I have here. Example: - > File YahooSearch.wadl [...] <application * xmlns:yn="urn:yahoo:yn" * > <grammars> <include href="NewsSearc...
asked by 04.11.2014 / 19:00
1
answer

Generate C # class from an XSD

I need to generate the class from an .XSD file. Although I have tried everything I knew (used .net tool: xsd.exe, httputility.net and other .cs generators) I did not succeed. I think the error is in the schema that passed me, but I can n...
asked by 15.07.2016 / 20:07
1
answer

Include nameSpace Default in XML

Sirs, good morning, I am generating an XML from the serialization of a class.cs (schema) and in the output is created the xml (first example) . This will be exported to an external system, but asked to leave the XML equal to (second ex...
asked by 12.11.2015 / 14:33
0
answers

How to generate an XML model from a SCHEMA XSD 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's possible to do something like the JAXB library. The XSD file is being passed as a parameter...
asked by 06.03.2015 / 15:51
0
answers

How to replace an "import" declaration inside an XML schema, by the contents of the XSD to be imported? [closed]

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 this import with its value in the XSD being...
asked by 14.11.2014 / 20:06