xml

ASP.NET, XSLT and dynamic controls

I wish to use xml and xsl to generate controls on an asp.net page. I currently have a asp.net content page that contains a xml control. When the page is loaded, an xml file is loaded and the required element is extracted and set as the xml control's DocumentContent and the xml control's TransformSource is set to the appropriate xsl file...

Problems with deleting XML elements using PHP DOM

Here's the XML file i'm working on: <list> <activity>swimming</activity> <activity>running</activity> <activity>soccer</activity> </list> The index.php, page that shows the list of activities with checkboxes, a button to delete the checked activities, and a field to add new activities: <html> <head></head> <body> <?php ...

Saving XML-Data in UserSettings

Hi all, I'm trying to save some XML-Data in my UserSettings (Properties.Settings.Default.UserSettings) in a .NET Winforms Project. Is there a Possibility to do that or would it be better to save this Data in a seperated File? Thanks for your Answers! ...

Which database has the best XML support?

I have a system which generates a large number of XML documents every day (of the order of 1 million) and I would like to be able to store and index these so that I can, for example, search for all documents with a certain field set to a given value. I understand that there are fundamentally two types of XML database, those that provide...

Custom php template engine: Am i finally on the right track?

Hi everyone, Since I keep showing up late for answering questions tagged php where i actually know the answer i figured i'd try asking a question myself. I've been working on so many complete rewrites of a custom template engine in php for so long and so many times that i thought i'd ask for opinions. In short, this is the most import...

Select specific rows with SQL Server XML column type

I'm trying to select data from a table defined similar to the following : Column | Data Type ------------------------- Id | Int DataType | Int LoggedData | XML but I only want to select those rows with a specific DataType value, and that contain a string (or evaluates a piece of XPath) in the LoggedData colum...

SSI and XSL

I am building a menu and have it set up so that I use a stadard <!--#include virtual = "myDoc.xml" --> SSI tag to include my xml document. The xml document includes the xsl document with <?xml-stylesheet type="text/xsl" href="myOtherDoc.xsl"?>. For some reason the xsl document is not working. The xml is being displayed as a blob. Th...

How to Parsing "Event XML" in Java?

I'm looking to use Java to parse an ongoing stream of event drive XML generated by a remote device. Here's a simplified sample of two events: <?xml version="1.0"?> <Event> DeviceEventMsg <Param1>SomeParmValue</Param1> </Event> <?xml version="1.0"?> <Event> DeviceEventMsg <Param1>SomeParmValue</Param1> </Event> It seems like SAX is mo...

How do I collapse empty xml tags?

I'm getting XML like this: <Items> <Row attr1="val"></Row> <Row attr1="val2"></Row> </Items> This is valid XML, as you know, but another library I'm using is busted and it will only accept XML in this format: <Items> <Row attr1="val"/> <Row attr1="val2"/> </Items> I'm already reading the XML into XmlDocuments, manipulating them, ...

How can I find the position where a string is malformed XML (in C#)?

I'm writing a lightweight XML editor, and in cases where the user's input is not well formed, I would like to indicate to the user where the problem is, or at least where the first problem is. Does anyone know of an existing algorithm for this? If looking at code helps, if I could fill in the FindIndexOfInvalidXml method (or something ...

What's a good way to process RTF-encoded files and convert them to XML?

I have never done huge amounts of RTF processing, I always used a library to read or generate one and that was a long time ago. Now I need to get more intimate with the format again, and eventually convert it to XML. Can you recommend a good path to do it so that I have a lot of control on how RTF chunks are parsed and processed? Initi...

Embedding Intellisense Xml Documentation in Assembly?

I have an assembly containing very thorough XML-based documentation, which is used through Sandcastle to generate the help-files for the product. We also use the output XML files for providing proper Intellisense in Visual Studio when programmers use the assembly obviously. In order to do this, it seems we have do both supply the user w...

Using system environment variables in log4j xml configuration

Is it possible to reference system environment variables (as opposed to Java system properties) in a log4j xml configuration file? I'd like to be able to do something like: <level value="${env.LOG_LEVEL}" /> and have it get that from the system environment variables, so I can avoid having to pass in so many things with -D parameters....

When would I use XML instead of SQL?

I've been working on database-driven web applications for a few years now and recently took on a project involving a CMS that is XML-capable. This has got me to thinking about the usage of XML/XSLT in general and in what situations it would be more useful than the approach I've always used, which is storing all of my data in a (My)SQL da...

How do I un-escape XML entities easily in .NET

Hi, I have some code which returns InnerXML for a XMLNode. The node can contain just some text (with HTML) or XML. For example: <XMLNode> Here is some &lt;strong&gt;HTML&lt;/strong&gt; <XMLNode> or <XMLNode> <XMLContent>Here is some content</XMLContnet> </XMLNode> if I get the InnerXML for <XmlNode> the HTML tags are ret...

Using server-side XML Parser to generate HTML content.

Is it possible using a server side xml parser to have it create a html blob that it is then included in a existing html page? Thanks ...

getter for boolean properties with JAXB

Hi guys! I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge: Generate getXXX() rather than/additionally to the isXXX() Method. I need to generate this methods cause when i ...

c# (more specifically xna) how can i request a xml file via http? Doesnt need to support xbox.

So im working on a game in XNA and i need it to get a server list off our site. so i just need to do a http request to http://play.feedthezombie.com/?want=servers&amp;enc=xml and get the contest as either a string or xml object. any clues? ...

Create PHP DOM xml file and create a save file link/prompt without writing the file to the server when headers already sent.

I've created a PHP DOM xml piece and saved it to a string like this: <?php // create a new XML document $doc = new DomDocument('1.0'); ... ... ... $xmldata = $doc->saveXML(); ?> Now I can't use the headers to send a file download prompt and I can't write the file to the server, or rather I don't want the file laying aro...

XPath condition for printing xml block

Hi , I am uisng java api and using xpath to parse my xml. I have a xml likethis - <animals> <dog> <looks>dangerous </looks> <bites> hard </bites> <growls> yes </growls> </dog> <cat>nothing special</cat> </animals> I would like a xpath condition to print <dog> <looks>dangerous </looks> <bites> hard </bites>...