Re: [Simple-support] Dynamically turn off strict mode
Brought to you by:
niallg
|
From: Lumsdon, H. <Hug...@bl...> - 2014-02-13 16:56:49
|
Hi Niall,
We want to ignore every element - so a converter isn't practical.
Actually I was thinking that, unless I'm completely misunderstanding things, the version annotation / attribute pretty much does what we want - however I'd rather leave this for actual versioning. Having a similar root attribute that is just a Boolean would be good.
Thanks.
-----Original Message-----
From: Niall Gallagher [mailto:gal...@ya...]
Sent: 05 February 2014 07:28
To: sim...@li...; Lumsdon, Hugo
Subject: Re: [Simple-support] Dynamically turn off strict mode
Hi,
I am afraid there is no way to do this. The only thing I could suggest is to use a converter for the parts you want to parse in non-strict way.
Niall
--------------------------------------------
On Tue, 4/2/14, Lumsdon, Hugo <Hug...@bl...> wrote:
Subject: [Simple-support] Dynamically turn off strict mode
To: "sim...@li..." <sim...@li...>
Received: Tuesday, 4 February, 2014, 9:46 AM
Hi,
We’re after a way to turn
off strict mode dynamically, based on an attribute in the root element of the source XML document. e.g.
<contentType
dummy=”true”>
i.e. if the “dummy”
attribute is set to true we want to be able to make all fields / attributes optional – equivalent to called Serializer.read(x,x, false) – but dynamically.
Any suggestions how best to do
this?
Thanks,
Hugo.
THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY, AND MAY BE PRIVILEGED. If this message was misdirected, BlackRock, Inc. and its subsidiaries,
("BlackRock") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BlackRock, unless the author is authorized by BlackRock to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BlackRock. Although BlackRock operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.
BlackRock Advisors (UK) Limited and BlackRock Investment Management (UK) Limited are authorised and regulated by the Financial Conduct Authority. Registered in England No.
796793 and No. 2020394 respectively. BlackRock Life Limited is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority. Registered in England No. 2223202.
Registered Offices: Drapers Gardens, 12 Throgmorton Avenue, London EC2N 2DL. BlackRock International Limited is authorised and regulated by the Financial Conduct Authority and is a registered investment adviser with the Securities and Exchange Commission (SEC). Registered in Scotland No.
SC160821. Registered Office: 40 Torphichen Street, Edinburgh, EH3 8JB.
© 2013 BlackRock, Inc. All Rights reserved.
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY, AND MAY BE PRIVILEGED. If this message was misdirected, BlackRock, Inc. and its subsidiaries, ("BlackRock") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BlackRock, unless the author is authorized by BlackRock to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BlackRock. Although BlackRock operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.
--
BlackRock Advisors (UK) Limited and BlackRock Investment Management (UK) Limited are authorised and regulated by the Financial Conduct Authority. Registered in England No. 796793 and No. 2020394 respectively. BlackRock Life Limited is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority. Registered in England No. 2223202. Registered Offices: Drapers Gardens, 12 Throgmorton Avenue, London EC2N 2DL. BlackRock International Limited is authorised and regulated by the Financial Conduct Authority and is a registered investment adviser with the Securities and Exchange Commission (SEC). Registered in Scotland No. SC160821. Registered Office: 40 Torphichen Street, Edinburgh, EH3 8JB.
© 2013 BlackRock, Inc. All Rights reserved.
|