xml

Magento layout module_default

I have created a module with several different controllers and therefore different pages. I want to have a default sidebar on each of my own pages but not the rest of the site. when i use the <default></default> it obviously propogates throughout the entire site. When i try <mymodule_default></mymodule_default> nothing happens. I am ...

What is a good book for saml (Security Access Markup Language) for developers or someone who wants to deploy

Hi I am working on developing single sign on module. I need to use saml but I have looked around internet and haven't been able to find good examples or good book names for it. I am a .net developer and haven't worked on security side a lot so this whole thing is a bit confusing to me. Please advise any good books or links on the topic...

Why doesn't this struct serialize?

I have the following struct: public struct Declarations { public const string SchemaVersion = "urn:ean.ucc:gdsn:2"; } And the SchemaVersion is used by some XmlElements which are trying to be serialized like this: [XmlElement(Type=typeof(SomeGarbage),ElementName="moreJunk",IsNullable=false,Form=XmlSchemaForm.Unqualified,Namespace=Dec...

How to extract a node attribute from XML using PHP's DOM Parser

Hey, I've never really used the dom parser before and now I have a question. How would I go about extracting the url from this <files> <file path="http://www.thesite.com/download/eysjkss.zip" title="File Name" /> </files> Thanks ...

MTurk: getQualificationScore returning "QualificationType does not Exist" for Base Qualifications Type (approval rate, etc)

I've got a bunch of results from a Mechanical Turk HIT that I had done, and I want to try and rank all my answers by how trustworthy that Worker was. To do that, I'm trying to get each submitting worker's accept rate from MTurk. I do this using the MTurk API QualificationRequirement type, "Worker_PercentAssignmentsApproved", whose type_...

android db or xml/kml?

Which is favourable, efficient and faster? storing information in xml format and retrieving it or storing information in a db on android? and also, in terms of portability, xml could be stored as an asset...can the same be done with db? do db come in as default package in all phones. application involves dealing with over 1000 records ...

Can Sharepoint Content Type be based on document schema

I am attempting to use a single Document Library to store and display multiple Xml documents based on a handful of different schemas. Each schema will have an InfoPath form associated with it. Can I associate the same file type (.xml) with multiple Content Types, given this will require Sharepoint to inspect the content of the file to ...

Update XML using XSLT in C# - How to update the same file

My requirement is to update an XML file (some elements identified via a parameter, with new attribute values again identified via a paramenter). I am using XSLT to do the same via C# code. My code is as below: XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load(f_Xslt); XmlReader xr = XmlReader.Create("SourceXML.xml")...

Get attribute using XPath with TinyXPath & TinyXML

I'm trying to write a function that will get me the attribute of a set of XML nodes in a document using XPath with the TinyXPath library, but I cannot seem to figure it out. I find the documentation on TinyXPath is not very enlightening either. Can someone assist me? std::string XMLDocument::GetXPathAttribute(const std::string& attrib...

ActionScript: how can I get xml nodes by attributes

I have XML below <node id="id1"/><node id="id2"/>... <edge id="eid1" fromId="id1" toId="id2"/> <edge id="eid2" fromId="id3" toId="id1"/> <edge id="eid3" fromId="id2" toId="id4"/> Now I need get all edge base on nodeId, nodeId = id1 -> eid1, eid2 nodeId = id2 -> eid1, eid3 nodeId = id3 -> eid2 nodeId = id5 -> Null ...

parsing a local saved XML file

Good morning every one, I have donloaded an XML File to my documents folder but how can I determinate the path to the file so I can parse it?!? I tryed it with NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString *localPath = [rootPath stringByAppendingPathCo...

CTE and Hierarchical XML Result

Hei, I've a simple CTE that result with hierarchical list of items (Parent/Child relation). How can I convert it to XML with the "FOR XML" sql syntax while preserving the hierarchical structure? Thanks, Espen ...

Reference XML file saved on computer from a web application.

Hey guys, I have developed a web service/client application that the user manually inputs data onto it, however now I have reached this stage I want to be able to reference a saved XML file on the hard disc using the client, send it to the web service, and save it on the computer using the webservice. In what way would I have to modify m...

Publish Signed Files?

Hi I built an auto-update feature to my program. It polling an xml in some http url, and in case there is new version is notifies the user and downloading the new files. I want to allow redistributing of those updates in closed networks without internet connections. The administrators can download all update files and host in some HTTP...

sp_xml_preparedocument error handling, what does it mean: SELECT @err = @@error + coalesce(@err, 4711)

Here (and not only there) people are using the following code to handle an error from sp_xml_preparedocument EXEC @err = sp_xml_preparedocument @hdoc OUTPUT, @xmlDoc SELECT @err = @@error + coalesce(@err, 4711) Are there any reasons for this? And what does 4711 mean in this context? ...

XML validation using Java Code

Hi all, I have set of XML files and they have a particular stucture. I want to validate the XML so that the stucture is fine always before using it. Can anyone help with some samples like how to validate the XML files using java code. Thanks... ...

Dont get content in IE xml/jquery

The trouble is that everything works fine on every browser except IE. I get content from xml and I am able to print it, but on IE it gives empty. After some googling the problem might be width this header("content-type:application/xml;charset=utf-8"); Where am I suppoesed to put that? On the xml file start or? Thanks. ...

Read xml nodes values from web service

I am trying to read xml nodes values from lastfm web service that look like this: <lfm status="ok"> <results for="stinkfist" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"&gt; <opensearch:Query role="request" searchTerms="stinkfist" startPage="1" /> <opensearch:totalResults>188</opensearch:totalResults> <opensearch:startInd...

xml:lang parse in PHP

Hi, everyone. XML: <?xml version="1.0" encoding="UTF-8"?> <answer> <describe data="aircompany"> <data> <code xml:lang="ru">FW</code> <code xml:lang="en">FW</code> </data> <data> <code xml:lang="ru">UT</code> <code xml:lang="en">ЮТ</code> </data> </describe> </answer> ...

XML Schema to validate XML Schemas?

Does anyone know if its possible to validate an XML schema with another XML schema? If so, is there a reference implementation out there? I would like to parse a Schema doc using JAXB. ...