xml-schema

How do I serialize and extract the schemas from c# XmlSchemaSet ?

I have a XmlSchemaSet member in my class which I want to serialize and also extract the schemas inside it. how do I do it ? ...

C#: Comparing xml schema files

I've been tasked to compare two XML schema files in C# and present differences between the two in an output XML document. I've researched the subject a bit to find a tool that could help me do this, but so far I've come up pretty dry. There's a dead microsoft project on the subject that actually works pretty well called XML Diff and Pat...

profile eclipse in order to diagnose performance degradation after working with xml schema files?

I'm using Eclipse 3.5.2 with all the relevant updates on OS X Leopard. Lately I've noticed that whenever I work with XML schema files, the whole IDE bogs down. This persists even after I've closed all the XSDs I had open. When I say "the whole IDE" I mean even simple tasks like changing the focus from one open Java file to a different...

xml schema attribute ref

Hellow, i have this xml schema <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns="http://hidden/abc" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://hidden/abc" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.8"> <xs:element name="inv_constraint"> <xs:complexTy...

Multiple elements in Xml Schema

I have a schema, where there are 3 elements and these 3 elements still have more sub elements. Lets name 1st element as Header, 2nd one as record, 2rd one as footer. There is one occurence of header, multiple occurences of record and one occurence of footer again. so the input to schema looks like header record.. record.. ... .. foote...

xml problem with <attribute ref="...">

i have an xml schema <xs:complexType> ... <xs:attribute ref="unaryOperator"></xs:attribute> </xs:complexType> <xs:attribute name="unaryOperator"> i try to use it in my xml file like this <inv_constraint unaryOperator="not"> The editor gives me this error: Description Resource Path Location Type [...

Generate XML-formatted table schema from SQL Server 2005?

Hi everyone, I was wondering how I might take a table schema in SQL Server and generate an XML document from it. The ideal would be if I passed in my database name (“SalesOrders”) and an XML doc comes back reading something like: <table=”SalesOrders”> <columns> <name=”SalesOrderID”/> <datatype=”int”/> <allowNulls=”...

Read namespaces from xml document

hi, how do I read namespaces from the XML document? <fx:FIBEX xmlns:fx="http://www.asam.net/xml/fbx" xmlns:can="http://www.asam.net/xml/fbx/can" xmlns:flexray="http://www.asam.net/xml/fbx/flexray" xmlns:ho="http://www.asam.net/xml" xmlns:ni="http://www.ni.com/xnet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

MS-Word to iXBRL

Hi, I need to develop a MS-Word plug in application using VS2008 that converts a docx file having content controls to iXBRL format. iXBRL format is a relatively new financial statement standard. Are there any APIs to help me out or can anyone give me idea to go ahead with it? Thanks in advance. Regards, Saubhagya ...

Where can I find a valid SVG XML Schema (for ecore generation) ?

I tried importing the SVG XML Schema into EMF, to obtain the SVG metamodel in ecore. However, the import failed due to the schema not being valid: indeed, svg.xsd references XMLSchema.dtd, which itself references datatypes.dtd, which does not exist! Consequently, I tried downloading the necessary files from the svg website (svg.xsd, XML...

C# / NET CF 2.0 DataSet serialization problem

Hi, I'm creating a XML DataSet from my destktop application: <?xml version = "1.0" encoding="Windows-1252" standalone="yes"?> <MyDataSet> <xsd:schema id="MyDataSet" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element name="MyDataSet" msdata:IsDataSet="true"> <xsd:com...

How to parse actual code like stackoverflow/intellisense/etc?

I was wondering how stackoverflow parses all sorts of different code and identifies keywords, special characters, whitespace formatting, etc. It does this for most code I believe, and I've noticed it's even sophisticated enough to understand the relationships between everything it parses, like so: String mystring1 = "inquotes"; //incomm...

Are there hidden advantages to deep XML representations versus shallow representations with intra-document references?

I'm engaged in a debate over XML representations of groups of objects. Given an object hierarchy of entities like Artist, Album and Track, with a high amount of connectivity between the object, what are the pros and cons of formatting the XML representation of a given object graph with deep XML versus using object references. I'm fir...

definign a tag or pattern for xml schema

I am newbie in xml schema. Is there any possiblility to define that element starts with some characater or symbol. I mean to say, <xs:element minOccurs="1" maxOccurs="1" name="Header"> <xs:complexType> <xs:sequence> <xs:sequence> <xs:element maxOccurs="1" minOccurs="1" name="NAME_STUDENTS"> ...

Parsing xs:date with timezone into Joda LocalDate

When parsing dates and times from XML documents into JodaTime objects, I use a common set of conversion utilities, generally using the parsers and formatters supplied by org.joda.time.format.ISODateTimeFormat. This works fine in the majority of cases, but this time I'm seeing documents with the xs:date value of the format 2010-08-19Z. T...

Problem using streams and DataTable.WriteXmlSchema

I'm loading a datatable from the cache and I need to read it's schema, and then load that schema into another datatable. Here's the code I'm using: using (var ms = new MemoryStream()) { using (var xmlWriter = XmlWriter.Create(ms)) { tableWithSchema.WriteXmlSchema(xmlWriter); xmlWriter.Flus...

how to get latest date in mdx?

hi if i pass my mdx like this i am get what i am expecting.. With Set [TimeLimit] as '{([CurrDate].[All CurrDate].[2010].[Q3].[Jul].[2010-07-21])}' select NON EMPTY {[Measures].[Balance], [Measures].[Peso Equiv]} ON COLUMNS, NON EMPTY { [PARTICULARS].[All Particulars], [PARTICULARS].[All Particulars].[RESIDENTS], [PARTICUL...

How to import an XML schema into the "no namespace"

I have a schema here where I am trying to include/import another schema that has no namespace (and this cannot be changed because it comes from another vendor and it would no longer validate their XML). Here is the first Schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:samp="http://sample/namespace" targetNamespace...

JiBX: How to run codegen on a schema that imports into the no-namespace schema

I have a schema here where I am trying to include/import another schema that has no namespace (and this cannot be changed because it comes from another vendor and it would no longer validate their XML). Here is the first Schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:samp="http://sample/namespace" targetNamespace...

XML Marshalling: How to add an attribute from another namespace to an element

I want to generate this XML: <myElement myAttribute="whateverstring" xsi:type="hardPart"/> I have this XSD: <xsd:element name="myElement"> <xsd:complexType> <xsd:attribute name="myAttribute" type="xsd:boolean" /> <!-- need to add the xsi:attribue here --> </xsd:complexType> </xsd:element> How exactly can I a...