xml

Testing XML data for being midweek or weekend with XSLT-1?

纵然是瞬间 提交于 2021-02-11 15:33:08
问题 Take the following XML sample: <Meeting BookmarkId="0" PageBreak="0" NumberClasses="1" SpecialEvent="1"> <Date ThisWeek="W20200406" NextWeek="W20200413">April 6-12</Date> <SpecialEvent> <Event>Memorial</Event> <Location>Address goes here</Location> <Date Day="7" DayShort="Tue" DayFull="Tuesday" Month="4" MonthShort="Apr" MonthFull="April" Year="2020">07/04/2020</Date> </SpecialEvent> </Meeting> Bear in mind that this XML content is automatically created for about 50 languages so the locales

How to serialize to XML / SOAP an object with property that is another complex object type? I keep getting invalid document structure

梦想与她 提交于 2021-02-11 15:17:54
问题 I'm trying to serialize a pretty simple set of C# code to XML / SOAP. The class type that I'm trying to serialize has a single property which is another class type. I keep getting an error that the document fails in the Epilog and would create an invalid XML document. Exact error message is below ... Token StartElement in state Epilog would result in an invalid XML document. Below is my test set of code ... using System; using System.IO; using System.Xml.Serialization; public class Program {

XSLT How to call XML item without ID partameter?

纵饮孤独 提交于 2021-02-11 15:16:34
问题 I have to create HTML table using XML data file and XSLT style sheet with < xsl:for-each > instruction. I should use names of items included into XML file. My data are organised in one XML file in two ways. Structure is as below: <Data> <FieldBook> (...) </FieldBook> <Reductions> (...) </Reductions> </Data> <FieldBook> <PointRecord ID="00000017" TimeStamp="2020-08-04T14:42:41"> <Name>osn2t</Name> <Code></Code> <Description1 Name="Description">k</Description1> <Method>GpsStaticObservation<

FLWOR query in eXist gives: XML Parsing Error: no root element found

陌路散爱 提交于 2021-02-11 15:14:37
问题 I'm looking to adapt the simplest possible FLWOR possible from BaseX to eXist as below. Error in eXist : XML Parsing Error: no root element found Location: http://localhost:8080/exist/rest/db/scripts/notes.xq Line Number 1, Column 1: Query: xquery version "3.0"; for $note in collection("/db/temp/notes") return $note Collection: <notes> <note> foo </note> <note> bar </note> <note> baz </note> </notes> from BaseX : nicholas@mordor:~/basex$ nicholas@mordor:~/basex$ cat notes.xq xquery version "3

Nodes in XML does not appear to be identified/utilizable

前提是你 提交于 2021-02-11 15:01:20
问题 I am probably making some kind of stupid mistake here, but I'm stuck, so hopefully some of you can help me out. I Have loaded an XML to xmlDoc through post, using DOMDocument and XMLHTTP Set xmlhtp = CreateObject("MSXML2.XMLHTTP.6.0") Set xmlDoc = CreateObject("MSXML2.DOMDocument.6.0") When I recieve the response from the API I write it to a cell to check the response, and it loads there. I find my Nodes and my information. I write it to a cell with With xmlhtp .Open "post", sURL, False

Hello World for Powershell Send-XmlRcpRequest?

柔情痞子 提交于 2021-02-11 15:00:42
问题 Desired output something like: <?xml version="1.0"?> <methodResponse> <params> <param> <value><string>South Dakota</string></value> </param> </params> </methodResponse> How do I use the xml-rpc powershell module to view the response? Perhaps it's possible to "cat" or somehow pipe the result from baidu to something that will print it? Or, put it into an object? PS /home/nicholas/powershell> PS /home/nicholas/powershell> Send-XmlRpcRequest -Url "http://ping.baidu.com/ping/RPC2" -MethodName

SOAP request on Java not working, but does on PHP

喜你入骨 提交于 2021-02-11 14:55:19
问题 I've been trying to find information about this, but I can't seem to find anything related exactly to my problem. When I make a soap call, using PHP class SoapClient, the request works perfectly. But when I try to do the same on Java, I get an exception, saying the URL doesn't accept POST, I've seen people building Soap calls on PHP with Curl, using POST, but I don't really know what SoapClient do. Anyway, this is the PHP Code: $url = 'https://mail.myzimbra.mx/service/wsdl/ZimbraAdminService

Adding common attribute to all chains in recursion

放肆的年华 提交于 2021-02-11 14:53:15
问题 A follow-up question to: Limit recursion with one deepest loop and assign exact id to all elements This code collects recursion. It is necessary that at the same time all recursion elements receive a COMMON-ID attribute with the value from the first element of the chain. This first element has also an attribue STATUS="0" . Other elements have STATUS="1" (for solution it may be useful). 1-source <root> <object id="a" id-3="COMMON-ID-1" STATUS="0"/> <object id="b" id-3="COMMON-ID-2" STATUS="0"/

BottomNavigationView overlaps the last item of RecycleView

吃可爱长大的小学妹 提交于 2021-02-11 14:49:12
问题 I have two cases. Both with bug. Root element is ConstraintLayout . Fragment element with NavHostFragment ( RecycleView inside). BottomNavigationView connect to bottom . Bug: doesn't work animation of scrolling by CollapsingToolbarLayout . Root element is CoordinatorLayout . The animation by CollapsingToolbarLayout is work. Bug: BottomNavigationView covers last item of RecycleView . Two gifs. Attention the AppBar and date 5 August 2019 (in the bottom). Please help to fix the layout so that

Ruby to_xml with repeating same nodes

偶尔善良 提交于 2021-02-11 14:42:27
问题 I would like to generate something like: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <Test> <Car> <engine>A</engine> <wheels>4</wheels> </Car> <Car> <engine>B</engine> <wheels>2</wheels> </Car> </Test> but doing: {"Car"=>[{"engine"=>"A", "wheels"=>"4"}, {"engine"=>"B", "wheels"=>"2"}]}.to_xml(:root => "Test") returns: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <Test> <Car type=\"array\"> <Car> <engine>A</engine> <wheels>4</wheels> </Car> <Car> <engine>B</engine> <wheels>2</wheels> </Car> </Car