xml

How can I reference a constructor from C# XML comment?

Dear ladies and sirs. Is it possible to reference a constructor from a C# XML comment without resorting to the explicit prefixes (like M: or T:)? For instance, the following yields compilation warnings, because the compiler does not like ".ctor". Trying "PublishDynamicComponentAttribute.#ctor" is no good, "PublishDynamicComponentAttribu...

PHP DomDocument selectors like jQuery.. does exist something like that?

Hi guys, im pretty new to the PHP DomDocument, im reading the documentation right now and im wondering is does exixts some selectors like the ones we seen in jquery. Well, i exmplain my situation: i have this xml file to parse every day and update a database: Europe Bank Money Currency That's a little snapshot: <gesmes:Envelope> ...

datasource configuration in standalone app when using Hibernate

Hi, I am wondering, where do we store database config in standalone app.The client is connected to database directly (I know it's not a good idea, but I am not allowed to create a server or open new port for RMI) I certainly don't want user open up Hibernate config xml file and get all the details (database username & password etc). ...

Creating XML for import into Excel, particularly dates

Greetings. I have a simple application that generates some performance-logging data, and I need the output to be accessible to Excel. I create an XML document with the fields etc in it, and can open this in Excel. The problem is, how do I coerce Excel to treat dates as dates? I've tried saving the date value as various formats, but E...

"where" query using linq xml

hi, been taxing my brain trying to figure out how to perform a linq xml query. i'd like the query to return a list of all the "product" items where the category/name = "First Category" in the following xml <catalog> <category> <name>First Category</name> <order>0</order> <product> <name>First Product</name> <...

web link in svg

Hi all. I need to have a linked text inside a svg graph. Here is what I did <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="138pt" height="188pt" viewBox="0.00 0.00 138.00 188.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/1999/xhtml"&gt; <g id="graph0...

Using XMLBeans on Andoid

Hi Everyone. I was just wondering if anyone had any success in getting XMLBeans (or any other generator) to work on android. It would be very nice if I could use it because I have a very large schema that I would rather not write all the classes by hand. I had asked about this on the android developers mailing list, but no one responded...

Best tools / formats for documenting XML API?

We are developing XML over HTTP service and we need a way to document the XML interface. Our supported XMLs generally are subsets of some industry standard XML API, which unfortunately lacks any good documentation. It has XSDs though with some annotations, so we use this go generate the initial documentation and then remove the unsuppo...

In Eclipse 3.5 : Rewrite xsl import/include location behind the scenes so it will properly validate files

I'm using Ubuntu I'm working with xsl files that have import or include statements like this <xsl:import href="/xsl/content/contentsecondary.xsl" /> Eclipse can't find this file because the /xsl/ isn't actually at the the root of the project, but is seen from the root of the web server because of this line in my etc/xml/catalog file:...

Question with XML construction using PHP

Hey everyone, Currently, I am constructing an XML document in PHP that will yield the following: <root> <collection> <region>1</region> <primary>John</primary> <collection> <collection> <region>1</region> <primary>Jane</primary> <collection> <collection> <region>2</region> <primary>Jill</primary> <co...

How to display XML data (extracted from PHP) in an Adobe Air Application ?

Hello I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application. I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is to display the same results in my adobe air application. For e.g. I have a simpl...

XmlReader DTD Validation Error on an Attribute

I am trying to use XmlReader to parse a file and set each element's attributes to variables using reader.GetAttribute("atrribute_name"), but the elements may or may not actually have that attribute present, so some elements give me an error...I would have expected it would just return null when the attribute is not present, but instead i...

parsing unknown attributes of elements within an xml file using jquery

Is it possible to get both the attribute name and the value of an element? Basically i want to get the name and the values of all attributes of a single element, in order to write them into a Javascript Object like this: obj { key: "value", another_key: "another_value", } Thx for any response ...

Load DTD into SAX Parser in java

I need to parse a bunch of incoming xml documents, they all have the same DTD. I don't want the Sax Parser to load the DTD every time it has to parse a new xml document. Is there anyway I can load a DTD into the parser and have it reused on subsequent parse calls? ...

How can I use XPath to find the minimum value of an attribute in a set of elements?

If I have XML like: <foo> <bar id="1" score="192" /> <bar id="2" score="227" /> <bar id="3" score="105" /> ... </foo> Can I use XPath to find the minimum and maximum values of score? Edit: The tool i'm using (Andariel ant tasks) doesn't support the XPath 2.0 solution. ...

Can XML Schema specify co-occurance constraints?

Can an XML Schema document specify that two items must co-occur? For example, that there are two optional elements, and they are either both present or both absent. a b? c d? e # giving only {ace, abcde} # instead of all combinations: {ace, acde, abce, abcde} <element name="root"> <complexType> <sequence> ...

Validating XML Docs Against a Wide Array of Constraints

I need to validate XML files against a wide array of constraints: type and/or format of element's text, co-occurrences, date comparisons and date math, as well as some user defined rules from a database (i.e. element X can only contain child elements A, B, and C) and I am not sure how to go about it. The current incarnation of this ap...

Why is my ATOM XML UTF-16 and not UTF-8

Hello, I have this code to create an ATOM feed Dim xmlResult As New StringBuilder Dim settings As New XmlWriterSettings Dim atomWriter As XmlWriter = XmlWriter.Create(xmlResult, settings) Dim atomFormatter As Atom10FeedFormatter = New Atom10FeedFormatter(feed) atomFormatter.WriteTo(atomWriter) atomWriter.Close() It returns XML that s...

Read xml inside xml with xslt

I got this XML document with an XML-string defined inside an element: <HIT> <FIELD NAME="xmlstring"> &lt;?xml version="1.0"?&gt; &lt;kontaktpersoner&gt;&lt;person&gt;&lt;funksjon&gt;&lt;![CDATA[Økonomi]]&gt;&lt;/funksjon&gt;&lt;tittel&gt; &lt;![CDATA[regnskapsansv.]]&gt;&lt;/tittel&gt;&lt;email&gt;&lt;![CDATA[[email protected]]]&gt;&lt;...

How to create arrayType for WSDL in Python (using suds)?

Environment: Python v2.6.2 suds v0.3.7 The WSDL (server) I work with, have the following schema sub-sections (I tried to write it clearly using plain text) - [ sub-section #1 ] searchRequest: (searchRequest){ userIdentification = (userIdentification){ username = "" password = "" } itineraryArr = (i...