xml

Validation against 10K XSD - performance problem

I have an XSD scheme which has 10K lines. It takes 5 seconds to validate my XML with 500 lines. I get dynamically XML via POST from external server, on every click of the user on my homepage. The validation takes 5+ seconds, which is very much for every click of the user. PHP Example: $doc = new DOMDocument(); $doc->load('file.xml'); //...

How define several elements with same name, but different type in xsd:choice element?

Is it possible in some way, to define an xsd scheme which could validate such xml: <item_list> <item ItemType="SimpleMessage" Caption="Simplest message"/> <item ItemType="ComplexMessage" SomeAttr="value"> <item_data>some text</item_data> </item> </item_list> Problem is that i havn't find any possibility to define smth like: ...

XML Attributes or Element Nodes?

Example XML using element nodes: <?xml version="1.0" encoding="utf-8"?> <users> <user> <name>David Smith</name> <phone>0441 234443</phone> <email>[email protected]</email> <addresses> <address> <street>1 Some Street</street> <town>Toy Town</town> <country>UK</country> </address> ...

XSL Template outputting massive chunk of text, rather than HTML. But only on one section

I'm having a slightly odd situation with an XSL template. Most of it outputs fine, but a certain for-each loop is causing me problems. Here's the XML: <area> <feature type="Hall"> <Heading><![CDATA[Hall]]></Heading> <Para><![CDATA[Communal gardens, pathway leading to PVCu double glazed communal front door to]]></Para> </featu...

Disabling access to wsdl file in Axis Service Listing (listing services from wsdl's)

The listing of all deployed Services can be disabled by setting 'disableServiceList' to true in Axis; which is used in AxisServlet.java -> reportAvailableServices() . However, is there a way to disable access to the wsdls ? ...

xml cache on iphone

Hi, Could somebody suggest a technique or class library to read up on for XML Caching on the iphone? The biggest lag in my app is the XML being downloaded from the server. If a user views a screen the xml has to be downloaded and parsed and theres a wait of a few seconds. If they leave the screen and come back to it again they have to ...

How to pass SOAP headers into python SUDS that are not defined in WSDL file

Hello, I have a camera on my network, I am trying to connect to it with suds but suds doesn't send all the information needed. I need to put extra soap headers not defined in the WSDL file so the camera can understand the message. All the headers are contained in a SOAP envelope and then the suds command be in the body of the message. ...

Best way to manipulate XML in .NET

I need to manipulate an existing XML document, and create a new one from it, removing a few nodes and attributes, and perhaps adding new ones, what would be the best group of classes to accomplish this? There are a lot of .NET classes for XML manipulation, and I'm not sure what would be the optimal way to do it. ...

how to build xml schema

is there any tool that support xml schema building ...

Is there anything like .NET DataView/ DataSet for Java, where I can snapshot some data and then perform queries on it?

Context In our application, we snapshot data from a database using a query that is entered by a super user, and then we save the data from that snapshotting using XML. If I was using .NET, I would use a DataSet (+ DataTables) and DataViews, which are pretty good for that purpose. But I am in the Java world, and my impulse choice was to ...

Do you know an XML binding toolkit that is able to process XSD using keyref?

Given an XML schema (XSD) and arbitrarily many sample files (XML) based on that schema, I need to create an XML parser/binder to load those files. The parser must be available from within a C++ program. All open source or commercial tools I looked at do not support keyrefs, which are heavily used in the XSD at hand. Do you know any too...

Validation using JAXB and Stax to marshal XML document

I have created an XML schema (foo.xsd) and used xjc to create my binding classes for JAXB. Let's say the root element is "collection" and I am writing N "document" objects, which are complex types. Because I plan to write out large XML files, I am using Stax to write out the "collection" root element, and JAXB to marshal document subtr...

Configuration manager for PHP

I am working on code re-factoring of configuration file loading part in PHP. Earlier I was using multiple 'ini' files but now I plan to go for single XML file which will be containing all configuration details of the project. Problem is, if somebody wants configuration file in ini or DB or anything else and not the default one (in this c...

Changing Element Value in Existing XML File Using DOM

Hi All, I am trying to find examples of how to change an existing xml files Element Value. Using the following xml example: <book> <title>My Book</title> <author>John Smith</author> </book> If I wanted to replace the author element value 'John Smith' with 'Jim Johnson' in a Python script using DOM, how would I go about doing so?...

amazon mws orders help simplify, flatten xml

I need to simplify this xml ( to a list ), and associate the pricing with the items (multiple items) here is my start, but the commented section does not work XDocument doc = XDocument.Load( filename ); var ele = doc.Elements("AmazonEnvelope") //.Elements("Header") ...

SoapClient Fault in Zend

I'm trying to debug this funky soapClient fault: looks like we got no XML document This is my request: $client = new Zend_Soap_Client('wsdlUrl', array('trace' => 1, 'exceptions' => 0)); echo $client->incomingRequest('user','pass','stuff'); var_dump($client->getLastResponse()); But I can't view the response to know why it's...

Passing data to and from server using XML

I need to design a web site in which data is passed to and from the server using XML. I got it how to transform data from database to XML and then to HTML, but I am not able to find how to pass data from client to server using XML. My webpages are designed using ASP. Is it possible to do pass data from client to server using XML. What ar...

SOAP, REST or just XML for Objective-C/iPhone vs. server solution

Hello, We are going to set up a solution where the iPhone is requesting data from the server. We have the option to decide what kind of solution to put in place and we are not sure about which way to go. Regarding SOAP I think I have the answer, there are no really stable solution for doing this (I know there are solutions, but I want...

making a gui editor

Hello, For my school project, I would like to build a gui that someone else can use to create a gui. Upon some research I saw lot of gui builders but didn't see anything along the lines of what I am looking for. But then I did find a tutorial using C# on here I rather create this gui editor for linux environment. Any suggestions t...

Selectively suppress XML Code Comments in C#?

We deliver a number of assemblies to external customers, but not all of the public APIs are officially supported. For example, due to less than optimal design choices sometimes a type must be publicly exposed from an assembly for the rest of our code to work, but we don't want customers to use that type. One part of communicating the l...