web stats
Linearize XML message - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2016, 07:32 AM
Ayanami Ayanami is offline
Mirth Newb
 
Join Date: Dec 2015
Posts: 14
Ayanami is on a distinguished road
Default Linearize XML message

Hi, is it possible to convert a raw message to XML and then linearize it for sending to a destination?

Thank you

Last edited by Ayanami; 05-12-2016 at 07:40 AM.
Reply With Quote
  #2  
Old 05-13-2016, 12:14 PM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

Linearize? What is that process?
Reply With Quote
  #3  
Old 05-23-2016, 01:01 AM
Ayanami Ayanami is offline
Mirth Newb
 
Join Date: Dec 2015
Posts: 14
Ayanami is on a distinguished road
Default

To minify the XML, i.e., to tranform the content into a single string. I have xml messages that occupy more than 64 kb, and I need it to have at most 64 kb so that I can integrate it into a Oracle 9 DB.
Reply With Quote
  #4  
Old 05-23-2016, 01:13 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 277
AlexNeiva is on a distinguished road
Default

Hello Ayanami,

i don't quite understand what you pretend too...
What i understand is that you receive a XML or Raw message but it's too big to then inserted on Oracle DB?

If it's that, why don't you "break" the XML in 2 and on DB create two columns for each XML block. If you want to read the whole thing just join it together!
Reply With Quote
  #5  
Old 05-24-2016, 06:40 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,116
narupley is on a distinguished road
Default

If all you want to do is get rid of whitespace between nodes, E4X actually does that by default. So as long as you have your data types set to XML and you have at least one transformer step, your outbound encoded data should not have any such whitespace. Or, you can set your inbound data type to XML and outbound data type to Raw, then you won't even need a transformer step.

If you're looking at your message in the message browser, note that if you have "Format Messages" checked at the bottom, any XML/JSON messages will automatically appear pretty-printed in the message browser. You can uncheck that to view the original unaltered data.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation