xml

What is the single best free Eclipse plugin for authoring and editing XML documents?

In my old job I used XMLSpy to do my XML authoring and editing, but now I require a free plugin for Eclipse to do this. My basic requirements are: - General XML document editing - Creating XSD files - Creating WSDL files Can you recommend a free Eclipse plugin for this? ...

xml+flash+Actionscript

hi, please help me how to update the externl xml file from actionscript.first i have load the xml file and the i have to update the xml file please help me, thanks in advance ...

Configuring Hibernate logging using Log4j XML config file?

I haven't been able to find any documentation on how to configure Hibernate's logging using the XML style configuration file for Log4j. Is this even possible or do I have use a properties style configuration file to control Hibernate's logging? If anyone has any information or links to documentation it would appreciated. EDIT: Just to...

How to add external data to an XML?

I've got an XML Schema and an XML instance that is valid to that schema. This XML instance contains some data. I'd like to extend the XML instance with further data(my own meta-data per XML element in the XML instance) while keeping it valid to the provided schema. The real use-case is that I've my own control that gets its data via X...

Is this the most efficient way to express this XDocument query?

We utilise a third party web service that returns XML which looks something like (cut down for brevity): <Response> <block name="availability"> <block name="cqual"> <a name="result-code" format="text">L</a> </block> <block name="exchange"> <a name="code" format="text">MRDEN</a> </block> <block name="mqu...

Local html file AJAX Call and jQuery Woes

I'm working on a offline version of a website using jQuery and some xml files. I'm running in to a problem in jQuery when I do a $.ajax call on a xml file jQuery throws a error. When I look at the error I can tell its loading the XML file because its in the error's responceText property. It seams to work just fine in Firefox. This is h...

What do you think about Microsoft Oslo MGraph?

MGraph is a great textual data format brought by Microsoft "Oslo". Do you think it has a chance to get as broad as XML is today? Example (Google Geocode): { name = "waltrop, lehmstr 1d", Status { code = 200, request: "geocode" }, Placemark [ { id = "p1", address = "Lehmstraße, 45731 Wa...

Can you use an ASP.NET web control (ASCX) to render XML?

Off the top of my head, I don't see any reason why you couldn't structure an ASP.NET custom web control (ASCX file) to output only XML. If you avoid using controls in the System.Web.UI namespace, and just use XML tags and sub-controls, which also render only XML, you should end up with a perfectly valid XML document being rendered. Am ...

Oracle: how to add a text node into an existing element

In Oracle, you can write: update t set xml = updateXML(xml, '/a/b/text()', 'gaga') This works only if you already have some text in the <b> element. How to update the document and "add some text" in <b> if the document in the database looks like: <a> <b/> </a> ...

Oracle: How to create an element in a specific namespace with XMLElement()

In Oracle, you can use the XMLElement() function to create an element, as in: XMLElement('name', 'John') But how to create an element in a specific namespace? For instance, how to create the following element: <my:name xmlns:my="http://www.example.com/my"&gt;John&lt;/my:name&gt; ...

Python data structure: SQL, XML, or .py file

What is the best way to store large amounts of data in python, given one (or two) 500,000 item+ dictionary used for undirected graph searching? I've been considering a few options such as storing the data as XML: <key name="a"> <value data="1" /> <value data="2" /> </key> <key name="b"> ... or in a python file for direct acce...

Writing XML with VB 6.0

I need to write an error log to a XML file using Visual Basic 6.0. Is there an easy way to do this? The error log will contain the error number, source, desc, and a timestamp. Thanks, Jeff ...

Can you reuse fragments of XML (in some kind of variables/references way)?

I am using SLD to style output from my geoserver. I have couple types of objects to be displayed. Each type have different icons, but text description is generated from the same information (text field in the database). I cannot use object_type as image name because you cannot use variable in image name (or I do not know how to do it...)...

Best way to encode text data for XML in Java?

Very similar to this question, except for Java. What is the recommended way of encoding strings for an XML output in Java. The strings might contain characters like "&", "<", etc. ...

XSD - Child elements depending on attribute value

I am trying to create an XSD schema for the following XML: <root> <!-- The actual file must contain one of the following constraints --> <constraint type="interval"> <min>100</min> <max>200</max> </constraint> <constraint type="equals"> <value>EOF</value> </constraint> </root> The child elements of the constrain...

Flash AS2: How to POST CDATA to a server?

I have an XML object that I want to send to my player via HTTP POST. This is all good when using XML.sendAndLoad. The problem is that when the XML object I generate contains CDATA, the CDATA is stripped out before the POST occurs. so if I have: var xml:XML = new XML("<root><tag><![CDATA[hello]]></tag></root>") when I do a sendAndL...

Microsoft.XMLHTTP and CDATA

Hello! I'm having a problem sending XML through Microsoft.XMLHTTP object in ASP (not .NET). I have CDATA elements inside some of the XML nodes and i get this error while trying to send. msxml3.dll error '80070005' Access is denied. First of all, this only comes up with CDATA. If i remove it, all sends allright. I did a little googling...

Serialize an inline List of Objects

This is bothersome and seemingly rare to figure out. But what I have is the need to serialize a list of objects into XML without the containing list element. For instance: public class Book { public string Name { get; set; } } public class Library { public List<Book> Books { get; set; } } I need to write it like so: <Librar...

XPath to search for elements in a sequence

With xml like: <a> <b> <c>1</c> <c>2</c> </c>3</c> </b> I'm trying to create an xpath expression (for a postgresql query) that will return if is a particular value and not that is all three values. What I currently have (which does not work) is: select * from someTable where xpath ('//uim:a/text()', job, ARRAY[ ARRAY[...

Check if remote file is well-formed XML with PHP

I have a PHP-driven site that includes an XML stock feed, which is remotely served from ASP (i.e. the XML feed url is of the order: http://remote.com/client.asp). As the feed is often unavailable (by which I mean the site returns an ASP error) I'd like to check if the feed is well-formed XML before including it. My usual url_exists func...