Ask Your Question
0

How to write XML into MD-SAL?

asked 2016-03-06 11:33:06 -0700

hwang3 gravatar image

Prior to Lithium SR2 there used to be a utility method which allowed restoring DataObject from XML, namely RestconfUtils.dataObjectFromInputStream. This method was extremely useful for populating data for unit tests. This method has been removed in Li SR2. I wonder what is equivalent method in Li SR2? Someone recommended to create a codec pipeline: parse the XML into DOM, then translate to NormalizedNodes via DomToNormalizedNodeParserFactory, then transform it to DataObjects via binding-data-codec (BindingNormalizedNodeCodecRegistry and friends). Tried two days and still can't make work. Can someone provide a sample code?

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-30 06:14:04 -0700

Hello,

I don't know if you already have the answer, but I believe this mail thread could help.

https://lists.opendaylight.org/piperm...

Thanks, Alexis

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-03-06 11:33:06 -0700

Seen: 136 times

Last updated: May 30 '16