xml

Insert Control into ASP.NET Menu Control?

I have a site that uses a menu control tied to a sitemapdatasource which calls from a xml sitemap file. I want to add to this menu a Login/Logout control. Is this possible? Dave. ...

XML File as Excel file.

I have a number of reports that I run against my database that need to eventually go to the end-users as Excel spreadsheets. Initially, I was creating text reports, but the steps to convert the text to a spreadsheet were a bit cumbersome. There were too many steps to import text to the spreadsheet, and multi-line text rows were imported...

Working with Database using LINQ to XML

Hi,I am Working on a project (C#) in the university and they said that we can't use a DBMS like SQL Server so we decide to use Linq and XML...we learned some basics in Linq to Xml But really we don't know how we can create tables and fields and work with them in Xml.any suggestions ? ...

What's the best way to only output a tag if it exists in XSL?

I'm working on an interface with a 3rd party app that basically needs to take XML that was spat out by the app and convert it into XML our system can deal with. It's basically just applying a stylesheet to the original XML to make it looks like "our" XML. I've noticed that in other stylesheets we have, there are constructs like this: ...

Technique/class to clean invalid XML in AS3/Flex 4?

I'm looking for a way to load invalid (malformed) XML into an AS3 XML object. Do you know a class or a technique to do so? I have to load malformed HTML and parse it as XML. This is a Flex project so I can use Flex specific classes if needed! I thought of using the HTMLLoader since it accepts all kinds of malformed HTML and renders it ...

Generate annotation along with schema from class

Hi, Do you know if we can add comments in the class and when we generate schema from it using xsd.ece, it should place annotations in the schema> ...

MySQL use certain columns, based on other columns

I have this query: SELECT COUNT(articles.id) AS count FROM articles, xml_documents, streams WHERE articles.xml_document_id = xml_documents.id AND xml_documents.stream_id = streams.id AND articles.published_at BETWEEN '2010-01-01' AND '2010-04-01' AND streams.brand_id = 7 Which just uses the default equajoin by specifying three tabl...

Saving XML in UTF-8 with MSXML

I'm trying to load a simple Xml file (encoded in UTF-8): <?xml version="1.0" encoding="UTF-8"?> <Test/> And save it with MSXML in vbscript: Set xmlDoc = CreateObject("MSXML2.DOMDocument.6.0") xmlDoc.Load("C:\test.xml") xmlDoc.Save "C:\test.xml" The problem is, MSXML saves file in ANSI instead of UTF-8 (despite the original file ...

Parsing Web Service Response in Oracle 9i

I'm having trouble parsing an XML response from a web service. I have a feeling this is due to a namespace issue. But, after 4 hours of research, trial-and-error, and head-banging I haven't been able to resolve it. Please help. My goal is to get a dbms_xmldom.DOMNodeList that contains "ERRORS" nodes. XML Response: <?xml version="1....

DataTable ReadXmlSchema and ReadXml Resulting in error

I'm having some trouble with the ReadXmlSchema and ReadXml methods for a DataTable. I'm getting the error "DataTable does not support schema inference from Xml". Code Snippet: I've tried Table.ReadXmlSchema(new StringReader(File.ReadAllText(XsdFilePath))); Table.ReadXml(new StringReader(File.ReadAllText(XmlFilePath))); And Table.Re...

jquery xml exists

I just want to use javescript /jquery to determine if and xml file exsists I don't need to process it I just need to know that its available or not. can seem to find simple check. thanks Edit trying load here is my code jQuery.noConflict(); jQuery(document).ready(function(){ var photo = '223'; var exists = false; jQuery.load('/...

Can Atom be used for things besides syndication feeds?

Purely in terms of its conceptual model, is the purpose of Atom (and RSS) only to provide a time-sequential series of frequently-updated items, such as "most recent blog posts" or "last twenty SVN commits," or can Atom be legitimately used to represent static and/or non-time-sequential listings/indices? As an example, "index of files un...

T-SQL XML Query, how to seperate matching nodes into individual rows?

I have a table that has a column full of XML like: <parent> <child> <name>Sally</name> </child> <child> <name>Bobby</name> </child> </parent> I'm trying to extract all of the names of the children into seperate rows. My desired resultset would look like: Sally Bobby However, if I do something like: SE...

Is there an XmlEncode / XmlDecode for .NET?

Are there methods for encoding and decoding *XML* in .NET? I can't seem to find them and am wondering why they aren't there and what to use instead? I need to encode an XML document and pass it through to a string parameter on a web service. It then needs to be decoded at the other end. ...

Getting XML parse error in ColdFusion. Can the packet returned be validated?

Getting an error on occasion on a specific CF page. Offending code listed below. Very odd because when I rebooted CF it went away. Can the XML be checked via XMLValidate to prevent this from happening? Is this some sort of CF bug since the error disappeared after reboot of CF? I have a feeling that the error will resurface at some poi...

Encoding in XML declaration python

I have created an XML file using python. But the XML declaration has only version info. How can I include encoding with XML declaration like: <?xml version="1.0" encoding="UTF-8"?> ...

Library for .NET that returns SPARQL results in some structured List instead of standard XML format?

Is there any Library for .NET that returns SPARQL results in some structured List instead of standard XML format? I am using SemWeb. I could not find any such method. ...

Parsing adobe Kuler RSS feed

I have been trying to parse the below XML file (kuler rss feed). I have read the various posts on this site but am unable to piece them together. I specifically want to extract the child(or siblings) nodes of the element <kuler:themeItem>. However I am getting an exception : Namespace Manager or XsltContext needed. This query has a prefi...

Castor: how to map a simple list of strings?

I have the following field in my class: private List<String> messages; Here's the mapping I have: <field name="messages" collection="arraylist" type="string" container="false> <bind-xml name="errors" node="element"/> </field> This is what I get as a result of marshalling: <errors><string>message1</string><string>message2</string...

Magento Flash + XML frontend

Hi guys, I'm working on a Flash frontend for a Magento powered store. This frontend will be an alternative to the HTML shop so it will sit in a subdirectory and use the same Magento installation as the main HTML site. The Flash application will get the data from dynamic XML files. It needs to get almost everything as the HTML site (cat...