Want to write schema for XML file

I want to write schema which validates my following xml <labtest> <labtest_id1>10190</labtest_id1> <labtest_id2> 10200</labtest_id2> <labtest_id3> 10220</labtest_id3> </labtest> The numbe...
more »

2017-02-13 18:02 (2) Answers

Understanding Soap with XML body

I have a WSDL that i am using, now i would like to understand how i can make the request... If i var_dump($client->__getTypes()) I get a list of arrays which is fine but i am looking at this element. 0 => string 'struct CreateSession { Sess...
more »

2017-02-13 10:02 (0) Answers

Remove xml node -Xelement

I have a xml file from which only specific nodes have to be removed. The node name will be given as input from the user. How to remove the specific nodes which have requested from the user? <Customers> <Customer> <id>...
more »

2017-02-13 05:02 (3) Answers

Need an SVG workaround

I'm recreating blueprints as SVGs, as can be seen in this Pen. I'm obviously not finished, so the code is a bit sloppy right now since I've been experimenting with different workarounds in vain. One of the effects I have implemented is rooms will fi...
more »

2017-02-12 23:02 (1) Answers

Floating Action Button gravity not working

I have a floating action button which should be in the bottom right corner, but apparently the gravity isn't working. It is shown in the top left corner. Here is my code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+...
more »

2017-02-12 16:02 (4) Answers

python pyxb UnrecognizedDOMRootNodeError(node)

I am trying to create a pyxb module from the LabVIEW schema. Using the module I am getting an UnrecognizedDOMRootNodeError: Traceback (most recent call last): File "X:\Projects\LV-PY\Python\LV-PY\pyXB\testXML.py", line 14, in <module> f...
more »

2017-02-11 20:02 (0) Answers

StanfordCoreNLP parse Annotation to xmi

Hi I have such interesting task. Using Java version of StanfordCoreNLP Parser I parsed text to .xml which you can review here. And now I need to convert that XML to XMI with all annotation dependencies. As I understand I need to parse each sentence ...
more »

2017-02-11 19:02 (0) Answers

Creating a snapchat settings like UI for android

Is there a build-in Android class that has the capability of creating multiple rows with different texts with a view at the end in them just like in the attached image or the only possible way is to create multiple textviews with an imageView? ...
more »

2017-02-11 19:02 (0) Answers

Extracting specific info from a combined rss feed

I'm not very experienced with manipulating RSS feeds, please bear with me. I have 2 feeds that I combined using RSSMIX here: http://www.rssmix.com/u/8225102/rss.xml. Within each item, in the description nodes, there is a line stating where the post ...
more »

2017-02-11 00:02 (0) Answers

XML Hive Serde Extract timestamp Hadoop

I am trying to extract the timestamp from an xml using xml serde in Hive. The external table creation links to a hdfs directory. Currently, the timestamp value shows up as null in my table. I am thinking the timestamp needs to be casted? I am not su...
more »

2017-02-10 21:02 (1) Answers

how to read Dc:creator tag in xml?

the rss feed export is: <item> <title>◀️تنبلی گروهی چیست؟</title> <link> http://forum.mlmarketing.ir/showthread.php/241-◀️تنبلی-گروهی-چیست؟?goto=newpost </link> <pubDate...
more »

2017-02-09 23:02 (1) Answers

Split A SELECT query into several Xml files

This is a simplified version of my problem. Using the following SELECT statement I output my data as Xml. SET @result = ( SELECT * FROM MyTable FOR XML path('receipts') ) SELECT @result AS xmloutput I then write the output into an Xml f...
more »

2017-02-09 16:02 (2) Answers

Perl archname for CPAN modules

Consider this CPAN Tester Matrix Report for OSX. Sometimes archname is darwin-2level,sometimes its darwin-thread-multi-2level. I understand that it refers to if you are using Perl compiled with -Dusethreads flag or not. 1) But does that also sig...
more »

2017-02-09 15:02 (1) Answers

xpath for JSON not the same as XML

I'm trying to XPath into some JSON using the same technique I would use to access XML. Below are 2 equivalent structures with the same XPath applied. let $json := xdmp:unquote('{ "foo": { "bar": { "bas": "findme", "boo": "324" ...
more »

2017-02-09 13:02 (1) Answers

HP fortify XML External Entity Injection

Hp fortify showing me a XML external entity injection on the below code StringBuilder sb= new StringBuilder(); StringWriter stringWriter = new StringWriter(sb); xmlSerializer.Serialize(stringWriter, o); XmlDocument xmlDoc = new XmlDocument(); xmlDoc...
more »

2017-02-08 23:02 (1) Answers

XML is not schema compliant

It seems to not matter how I form my XML, I'm getting the following error: Schema Violation in message: Element 'message': No matching global declaration available for the validation root. The first two lines of the XSD look like this: <xsd:s...
more »

2017-02-08 18:02 (1) Answers