xml

Storing associative array in MySQL DB

Hello, I'd like to store associative array containg mostly strings and integers as values in db. I was thinking: implode/explode - need to find delimiter, which won't be in values - since it's almost user generated, not safe XML - feels to heavy for the job (creating/reading values) json - if i need only to work with json_decode/json...

Best resource to learn XML

Hi, I wish to learn XML (the one which could be used in asp.net). Please provide me the site (or in worst case book name) which has good content about XML. If it contains about XSLT /XSL then it is also good Please take care, that i have never learn XML Thanks ...

Java read in SOAP mesage using xpath

I have the following soap message: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;&lt;soap:Header&gt;&lt;wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.o...

Fast infoset or .net binary compression open source libraries

Hi, are there open source libraries implementing the fast infoset or the .net binary compression format? I'd need them for C, C++ and C# (including support for the .net framework, I'm not sure it natively supports the binary compression). The final goal is that of compressing xml files with a fast algorithm available for a wide range of...

Parsing an XML file -options?

I'm developing a system to pick up XML attachments from emails, via Exchange Web Services, and enter them into a DB, via a custom DAL object that I've created. I've manage to extract the XML attachment and have it ready as a stream... they question is how to parse this stream and populate a DAL object. I can create an XMLTextReader and...

How to handle xml that contains nested xml using c# xmlreader?

I'm using c# to interact with a database that has an exposed REST API. The table that I'm interested in contains forum posts, some of which themselves contain xml. Whenever my result set contains a post that has xml, my application throws an error as follows: Exception Details: System.Xml.XmlException: '>' is an unexpected token. The e...

How to prevent just anyone sending a request to my web service

I have an app in C# which serializes an object into xml into a http stream to my server. The server has some php which runs a stored procedure in mysql with the xml data as its only parameter. The problem is that someone could very easily just send up an xml of the same format with a whole lot of entires that would ruin the database wit...

generate schemas for sql 2008 xml bulk load

hey guys i have to import large sized xml data files (some of them 500 mb in size) into sql 2008. i plan to use sqlxml bulk load for the same. however i am only interested in certain elements of the xml data file, not each and every element. my question is: in the schema file do i need to mention each and every element present in the xm...

Is it possible to swap XML layouts during runtime in Android?

Is it possible to load my main.xml layout file in onCreate() and then later in the app, switch to a new XML layout? I've tried placing setContentView() later on in the app but that seems to not actually set the new View because my references to objects in the newly set xml layout file are returning as null. I've tried doing some layout...

Create Excel XML files from Python

I need to create Excel XML files from Python. The Excel XML format is fairly simple. I looked at a a sample xml file saved from Excel 2003 and it is fairly simple. I'm looking for a a Pythonic, ready made library to create such xml files instead of reinventing one. Something that I can use as below: book = Expy.Workbook() s1 = boo...

Reading the inner text of an XML element using Go

I'm trying to read an XML file in Go using the xml package (http://golang.org/pkg/xml/). My problem is that I'm not sure how to read an element's inner text. I load the document in the xml.Parser and then call parser.Token() to move through the file. I check to see what the token is using the following: token, err := parser.Token() if ...

Flash, actionscript...load and parseXML with scrolling

Hi, I would like to add a component in my flash website which will, 1.load xml data. 2.parse it using stylesheet 3. Have a scrollbar incase xml data is a lot. any suggestions will be helpful ...

Why does Visual Studio use backing fields for WCF Service References?

As many of you will be aware, I can use the DataContract attribute to mark a class for serialization into XML in a WCF service. For example, I can create a DataContract thus: < DataContract() > Public Class fooClass < Datamember() > Public fooString as String End Class When I add a service reference to the code that wi...

How to create a dataset from an xsd schema in Visual studio 2010

I searched for this here and on msdn but didn't find a satisfactory answer either because things changed from 2005/2008 to 2010 or I don't know how to use VS IDE. So, here is what I am trying to I have an xsd file and I want to perform searching operations on that. For that I figured that I would need corresponding classes and dataset i...

How do i remove &#x2002; &#x2014; &#x2013; special characters from my XML files

this is a sample of the xml file <row tnote="0"> <entry namest="col2" nameend="col4" us="none" emph="bld"><blst> <li><text>Single, head of household, or qualifying widow(er)&#x2014;$55,000</text></li> <li><text>Married filing jointly&#x2014;$115,000</text></li> </blst></entry> <entry colname="col6" ldr="1" valign="middle">&#x2002;</entr...

SAXParserFactory URL Timeouts

I have the following piece of code: try{ SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); /* Get the XMLReader of the SAXParser we created. */ XMLReader r = sp.getXMLReader(); //This handles the xml and populates the entries array ...

How to get the xml-safe version of an sql server XML Column

Is there a way to get the xml-safe version of an xml column in sql server ? By xml-Safe i mean escaping special characters like <,>,', &, etc. I'd like to avoid doing the replacements myself. Is there a build in function in sql server. What I want to achieve is to store the xml content into another xml attribute. ...

VB.NET WCF Soap Web Service Variables Missing

I have created a WCF VB.Net Soap service. The service compiles and runs, but at runtime, only half of the variables passed to the function via a soap request are received. Would anyone please be able to help me determine why only part of the variables are being passed in. Thanks in advance. Interface Imports System.ServiceModel Impo...

get attribute from xml file

My XML file entry: <GlobalView xmlns="http://schemas.openxmlformats.org/package/2006/relationships"&gt; <rels> <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/> </rels> wanna query attribute Id inside Relationship element...

Format Table Variable Output with FOR XML AUTO

Using SQL Server 2008. I have a table variable with a single column and single row. If I do this: Declare @testsToRun Table ( testsId BigInt ) Insert Into @testsToRun Select testsId From tests Where testsId = 10 Select Top 1 * From @testsToRun For Xml Auto , Type , Root('testMessage') I get XML that looks like this: <testMessage>...