Alter API to accomodate XML node creation