XML Generator, Entity referenced, but not declared
I’m having trouble using the XML Generator with data that contains special symbols and characters. All the usual suspects (<, >, &, ", ', ) have been taken care of by using the HTML notations <, >, &, etc., but I’m having trouble with others that I feel should work. For instance, the symbol for the registered sign, ®, should be notated as ®, however, the XML generator gives me an error stating that “the entity, reg, is referenced but not delcared.” How do I go about declaring these. I have quite a number of symbols and accented/uumlat’ed letters that I need to use. Whether I use the rendered symbol or the HTML notation, the XML Generator fails. How can I successfully include these symbols in my XML messages so that the XML Generator doesn’t see them as errors? See pics below for examples of my issue.10KViews0likes25CommentsParsing XML Data and formatting it
Hi Team, We have a requirement to parse the xml file (1.5GB) and transform/group the content based on the one of the field value and write write multiple files based on the each group. === Sample Input == <?xml version="1.0" encoding="UTF-8" ?> test test Test1 Test2 Test1 ===== output File 1=== <?xml version="1.0" encoding="UTF-8" ?> test test Test1 Test1 ===== output File 2=== <?xml version="1.0" encoding="UTF-8" ?> test test Test2 I have tried using the xml parser , split based on child and add headers back. Problem here is as it is huge data CPU and memory are going high and getting Connection lost error. Have also tried xslt but still got same issue. Can you please help me to design the solution with memory optimization. Thanks in advance.8.9KViews0likes11CommentsMapper, create xml with both attribute and node value, or multiple attributes
I’m using a mapper to create values for an XML Formatter snap, but I can’t figure out how to handle when the XML requires both an attribute and a node value, or multiple attributes, like: <address_type desc=“Work”>work</address_type> How can I get the format I need?6.8KViews0likes7CommentsNeed to cover few scenarios in pipeline
Hi, I have a multiple scenario to cover in a pipeline. 1)read an xml, validate the xml , send mail mentioning xml file name that it is not valid. 2)create lookup out of csv file which will have number, name, s1. 3)if xml is valid, check if <V_number> exists in lkp(number). if yes, then transform the xml and name the output file with <V_number>_lkp(name)_timestamp. 4)if <V_number> does not exists in lkp(number) stop the execution and send mail mentioning xml file name. I am able to transform the xml. My current pipeline looks like below:-5.6KViews0likes10CommentsAPI that catches HTTP Post encoded in CXML
I am trying to build an API endpoint that can catch an HTTP Post that is encoded in XML. The error I am getting is:Document input views only accept JSON-encoded data. I understand that there are snaps that allow me to conver the XML to JSON once the data is in the pipeline but I cant get the HTTP Post into my pipeline to begin with. Unfortunately, I do not have the luxury of converting the XML to JSON as this is data from over 100 different vendors. Does anyone know if SnapLogic is able to handle an HTTP Post encoded in XML? Thanks for any help in advance!Solved4.8KViews0likes3CommentsPosting xml to webservice via rest post snap
Hi All, There is a requirement to post xml to a webservice , the input for the pipeline is xml and need to pass this xml as it is to webservice. I am using xml formatter and binary to document and trying to post via rest post snap to webservice but somehow am receiving 400 error everytime. The same xml when we are trying to post via postman , it is getting posted successfully to webservice. Below are the screenshots of pipeline:4.5KViews0likes2CommentsNo schema available(Input Schema) for Mapper
Hi, Pipeline design is like below:- File Poller , file reader,XSLT, XML parser, mapper, XML Generator. In the XML parser and XML Generator, I have provided xsd but I am only getting output schema and not the input schema in Mapper. XML parser xsd is equivalent to xslt output. Could you please let me know what am I doing wrong here.Solved4.5KViews0likes4CommentsCreate xml segment only if condition is met
Hi, I am trying to convert xm1 into xml2. In order to that I have used XML Parser, Mapper,XML Formatter. There is one logic, I need to create a segment only if value of a particular repeatable segment is either jsonPath($, “$Z_RDGD102.IDOC.DKA1[].PAR") is equal to ‘AF’ or ‘AG’ or ‘PC’. And part of output segment is like below:- jsonPath($, "$Order.Data.Addresses[].Address[*]”) How do I achieve it, please let me know.4.3KViews0likes5CommentsXML Parsing To Get Values
Hello I am receiving some XML in the following structure/format and want SnapLogic to convert each row to a document with the attributes as the value. So here is the sample of the XML coming in from a DB query where it is stored: When I tag on the XML Formatter and Parser it doesn’t seem to break it down for me with the retrievable values:4.2KViews0likes2CommentsXML formatter replaces " to "
I have an input to the XML formatter which looks like this 🙂 { “@SEGMENT”: “1”, “code”: “B00001”, MVodafone 150" BLACK “test_p”: [ ] } when this input is passed to XML formatter, it gives output as below: “code”: “B00001”, MVodafone 150amp;quot; BLACK Note** I have edited the output to place it in the forum. Is there any way, where we can stop xml formatter from replacing the " to " ?Solved3.9KViews0likes3Comments