Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


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

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


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

Thanks, Alexis

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

Question Tools

1 follower


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

Seen: 141 times

Last updated: May 30 '16