13:26, EEST
February 21, 2014
I have the content of a NodeSet.xml model available in memory as a String and would like to load the model into the addressSpace at runtime. I can’t figure out a way though how to call getAddressSpace().load(URI), or in other words, how to obtain a URI from an in memory String (or DOM) without going through a temporary file.
I’m wondering whether you are considering to overload the NodeManagerTable.load() method with a version accepting a String? (ultimately an overloaded ModelParserBase.parseFile())
Cheers,
Hans-Uwe
13:54, EEST
December 21, 2011
16:01, EEST
February 21, 2014
I created an overloaded ModelParseBase#parseFile(InputStream xmlStream) and it seems to work. But I noticed 2 other little things:
1) The SAX inputSource should perhaps be created on an an InputStream (also in the original method) rather than on an InputStreamReader (I got an exception otherwise as described here: http://stackoverflow.com/quest…..-in-prolog )
2) the ModelParser also tries to parse the extensions elements and throws exceptions, because it is missing enums for any elements underneath extensions. The model is still been loaded but it is not nice for the users if they see the stack traces in the console output. Even if the element shall be parsed for some reason, maybe the stack trace could be suppressed (the logger.error message would suffice)
Thanks,
Hans-Uwe
12:36, EEST
December 21, 2011
9:27, EEST
October 20, 2014
9:53, EEST
December 21, 2011
16:28, EEST
February 21, 2014
15:01, EEST
August 20, 2014
18:17, EEST
December 21, 2011
11:55, EEST
September 26, 2019
Most Users Ever Online: 1919
Currently Online:
16 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 728
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuartModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1