Liquid Mapping/Xsd Schemas for CData - cdata

I'm fairly new to Azure logic apps as well as xml so bear with me:
I'm trying to change an XML file to JSON using logic apps, but my XML file contains CData. I think my schema file is correct but I don't know the correct way for liquid to map directly to the XML response data. Could anyone provide me with any extra info for parsing through this response data?

Related

How to create pdf Template with the dynamic values

I am stuck in this task from a month ago so my last option is to post my query on stack-overflow.
I have to find a PDF Creation tool where i can crate my PDF Template and also i can assign a data source like sql server or any thing else. by which the sql server dynamic data can replace the value of pdf template Tags.'
I have tried many tools like Foxit and bulzip . But any of the tool does not meets my requirement. I must say I have completely stuck in this Task.
So Please give me appropriate solution . Immediate response will be appreciated.
If you want to create pdf in client side, you can try jspdf
If you are using php for server side, you can try mpdf.
Have a look at wkhtmltopdf. It's a very simple console utility that creates PDF from HTML. So basically you need to generate HTML markup. You can use some scripting language (PHP, python, etc.) or templating engine, depending on what exactly you want and what tools you are familiar with.
Create HTML/CSS markup for your template.
Define places where you want to put dynamic data, mark it
somehow.
Create script that will query database for your data and then
Either use search&replace in your script to place real data, or
copy whole HTML as a template using some templating engine (for
instance, PHP is itself a template engine, so you can basically
place save template as PHP file where real data is placed where
needed).

Populate SWF with SQL data

I designed a Flash application that takes data from an XML file and populates a datagrid and textFields.
I need to access a SQL database instead of XML.
Can you lead me in the right direction? I have seen Flash Builder access SQL, but I am not sure how to populate the datagrid in the SWF. The SWF contains a map and other graphic elements and animation.
Thanks.
Simple answer is that you create a PHP file that accesses the database and prints/echoes the MYSQL data as your XML. Using the URLLoader class you can load this php file and have the xml as the loaded data. The rest should then be the same as your existing app.
You can add get variables to the url string used in the URLLoader or you can use URLVariables to use post variables to pass values if necessary to your php script.

How to read an xml file using Silverlight using c#?

I am trying to figure out if there is a way to read xml file (like c:\test.xml) in silverlight application? All I want is to read xml file into xmldocument. any help?
I have a text box from where I read xml file path. Now I want to read that xml into xmldocument
As the link that Russ provided mentions, you can't directly access a file on the hard drive with Silverlight. Typically you need to use the OpenFileDialog to retrieve the file stream. However if your Silverlight application is an Out-Of-Browser application with Elevated Permissions then you do have access to the user's Documents folder.
Also, XmlDocument is not available in Silverlight. You'll want to use the XDocument class, which is the newer way to work with XML in the latest versions of .NET.
Here's an example of using XDocument, in relation to XmlDocument:
http://blogs.msdn.com/b/xmlteam/archive/2009/03/31/converting-from-xmldocument-to-xdocument.aspx
MSDN Docs on XDocument:
http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument(v=VS.95).aspx

stream varbinary PDF file from SQL 2005 to browser using ASP

I have a commercial program that stores PDF files to SQL 2005. I would like to be able to search for (I have that part) and then display the PDF file in a browser. It's the 'display the PDF file' that I'm having trouble with. I am using HTTP/ASP and would prefer to continue that way. I don't know anything about ASP.NET, so that would not be helpful to me. Any help would be appreciated. Thanks.
The best option here is to implement a HttpHandler that fetches the binary data from your database and outputs it to the response stream. This is the most efficient method available in ASP.Net.
There are many questions about HttpHandlers on SO, so implementing one should be easy: https://stackoverflow.com/questions/tagged/httphandler
One thing you should be aware of is that you should set the correct content type so that the browser recognices the pdf document.

SSIS 2005 XML Validation Failure Logging

I am working on implementing an SSIS package in SQL Server 2005 which deals with XML files.
Multiple XML files will be read-in from a directory on the file system and data from each XML file will be imported into a database table. The XML to database row works fine and I can iterate over all *.xml files in a specific directory.
I have run into an instance during development when the XML file does not validate against the XSD provided. When this happens the package halts execution. I would like to log the invalid XML filename (and maybe the XML file contents as well) to an error log table in SQL Server and then CONTINUE processing the remaining XML files in the directory.
Has anyone ever done this before? I will also be implementing error logging for the XML data itself so if it can be incorporated into this, I would be open to that idea as well.
Thanks!
I haven't dealt with xml like this in particular, but I can suggest some places to start.
You could place an action in the Event Handlers Tab to handle the error. If you have the the filename and contents in a variable, you can insert that into a table.
I was thinking you could use the error route out of your datasource in a dataflow, but the error probably happens before that.