Move XML object factory logic to libcore

It makes sense to hide the details of the parser implementation
(and other similar objects) in libcore so it could be changed.

Test: build
Bug: 111055375
Change-Id: I475dec1bc66518b5ec2491abd49d11f5634c86b3
1 file changed