xml

Optimal xml storage engine

I'm considering optimal open source solution for storing xml documents with further querying on them effectively. Amount of data will be small. As far as I understand native xml databases might form a proper solution for my case. They obviously store xml documents in highly efficient way. It would be great to learn your experience. Any s...

SQL 2005 XML Special/Escaped Characters from System.Xml.XmlDocument.OuterXml

I have some XML that has creating using an XmlDocument object in C#. I am then inserting the xml data into an XML column in SQL 2005 using the XmlDocument.OuterXml method to get the raw xml. The problem I have is that the xml contains some special characters. Namely:  This is because the xml is built up from user input from...

XOM v/s javax.xml.parsers

i want to do read simple XML file .i found http://stackoverflow.com/questions/528664/simple-way-to-do-xml-in-java There are also several parsers available just wanted to make sure that what are the advantages of using XOM parser over suns parser Any suggestions? ...

Sax invalid XML character exception

Hey all, I have downloaded the xml dump of the Stack Over Flow site. While transferring the dump into a mysql database I keep running into the following error: Got an Exception: Character reference "some character set like &#x10" is an invalid XML character. I used UltraEdit (it is a 800 meg file) to remove some characters from the ...

Xml Comments Localization

Hello there, I'm going to use XML comments to document an extensibility API of an application, but I didn't find any reference to use multiple languages or any way to localize these files. I would like to use sandcastle or any other tool (ABD...?), but I don't know where to put the translated XML comments, I don't know if I should use t...

Any way to make default attribute values in XML get parsed in Flex based on XSD schema?

I have an xml with an xml-schema. The xml-schema defines an abstract complex type with 2 optional attributes that have default values. Then I have several complex types that extend the base one. And finally nodes of the types defined. So I load the xml and when I parse each node, the optional attributes are not present at all. I've tried...

Showing progress of python's XML parser when loading a huge file

Im using Python's built in XML parser to load a 1.5 gig XML file and it takes all day. from xml.dom import minidom xmldoc = minidom.parse('events.xml') I need to know how to get inside that and measure its progress so I can show a progress bar. any ideas? minidom has another method called parseString() that returns a DOM tree assumi...

Is there an XPath-like syntax in XAML that can get items out of a collection?

I have a Dictionary object in my ViewModel with key/values that translate words on the View. It is possible to get the language information as an XML object and then pick out the translated phrase with XPath, something like this: <TextBlock DataContext="{TranslatorDictionaryXml}" Text="{Binding XPath=/terms/term[key='edit']/value[@lang...

How to build an XDocument with a foreach and LINQ?

I can use XDocument to build the following file which works fine: XDocument xdoc = new XDocument ( new XDeclaration("1.0", "utf-8", null), new XElement(_pluralCamelNotation, new XElement(_singularCamelNotation, new XElement("id", "1"), new XElement("whenCreated", "2008-12-31") ), n...

How do I model the byte[] type in XSD?

I have the following object XSD type. The Data element should actually be represented by a byte[] type, however, I am not sure how to model this in XSD. Could anyone help? ...

Importing XML Crashes Excel

I have had this recurring problem with all of my spreadsheets for months. The spreadsheet will be working fine and importing the xml files fetched from our website, then all of a sudden it will start crashing everytime on import. The only thing that fixes it is to take all of the contents (sheets, code, references) and drop them into a...

Posting xml from classic asp to asp.net

I apologize if this has been asked before. I searched and didn't find anything that matched my situation. Also bear in mind I am fairly new to asp/asp.net development. My current project is a relatively simple e-commerce site. The customer will connect to the site, select products, input shipping and billing information, payment info...

AS2 Parse XML Problem

I have an xml file and a flash file. The flash file reads the xml file. <?xml version="1.0" standalone="yes"?> <banners> <banner> <title>Hello World</title> <image>http://www.search-this.com/wp-content/themes/big-blue/images/company-logos1.gif&lt;/image&gt; <link>http://google.com/&lt;/link&gt; </banner> </banners...

How can I put a lot of data from XML into my database quickly?

I am using .NET to parse an XML file with about 20 million lines (1.56 GB), building LINQ objects out of the data, then inserting it into a SQL database. It is taking a really long time. To improve performance I am considering asking for a pipe delimited file. I was also wondering if Perl might be any faster. Does anyone have sugge...

Linq to XML - Weird where results

Hello everyone, I'm new to Linq and having some strange results when I try to perform a query using where. Example of the xml: <movies> <movie id="1"> <scenes> <scene id="1"> <sceneartistsnames> <sceneartistname>Artist A</sceneartistname> </sceneartistsnames> <...

iterating over unknown XML structure with PHP (DOM)

Hi all I want to write a function that parses a (theoretically) unknown XML data structure into an equivalent PHP array. Here is my sample XML: <?xml version="1.0" encoding="UTF-8"?> <content> <title>Sample Text</title> <introduction> <paragraph>This is some rudimentary text</paragraph> </introduction> <description> <paragra...

Merging cross referenced XML-files

I'm co-developing a vehicle information system that reads and presents data from a communication bus. Signaling information on the bus is stored on some kind of database (from the dark ages i'd guess) from which it's only possible to get data out of by extracting a xml-snapshot. Since that wasn't bad enough, someone in upper management t...

AS2: Disabling links in hidden Dynamic Text Fields & MovieClip children

Greetings! I am working on an AS2 website with MovieClips for pages that swap depth when navigation is clicked. Text content is pulled dynamically from an external XML file & styled via CSS, including links (HTML/CDATA). My problem is this: When a page is hidden behind another via swapDepths(), HTML links within the hidden page are sti...

jquery nested each problem

See Edit Below. I am trying to get some jquery to work in a wordpress plugin I am building. (string 'jQuery' is used instead of the '$' idiom when using jquery in wordpress, fyi) sample xml: <person> <Name>Some Name</Name> <location> <locationName>One Address</locationName> </location> <d...

php xml parsing

$xml = curl_exec($ch); i hava an xml object like this which is retruned from a webservice. how can i parse this in PHP????? ...